DocBlox

PHP 5.3 compatible API Documentation generator aimed at projects of all sizes and Continuous Integration

Frequently Asked Questions

I get the following error: preg_match(): Compilation failed: support for \P, \p, and \X has not been compiled at offset XX. What does that mean?

\P, \p and \X are Unicode character selectors of preg_match, like \w but then on steroids. To ensure multi-lingual support DocBlox converts all source files into UTF-8. preg_match() uses the PCRE library, which is (almost?) always bundled with your PHP version.

It is here that an error may occur as there are packages out there (mostly on CentOS Linux) that have an incorrectly build PCRE library.
To enable full UTF-8 support with PCRE you need 2 options: UTF-8 support and Unicode properties enabled; the latter is most probably not supported.

The easiest fix is to upgrade your PCRE library to the latest version or follow the instructions in the following blog post: http://chrisjean.com/2009/01/31/unicode-support-on-centos-52-with-php-and-pcre/

Fork me on GitHub
  • Time to release 0.16

    Loading...
  • About DocBlox

    DocBlox is a Documentation Generation Application (DGA) for use with PHP applications.

    It is capable of transforming the comments in your source code into a full API reference document.

    DocBlox is build to be PHP 5.3 compatible, fast, having a low memory consumption and easily integratable into Continuous Integration.


  • Admin