Comments

Posted by Ryan Mauger (bittarman) on 2010-07-15T02:07:23.000+0000

The lowercase 'u' in a pcre expression is not PCRE_UNGREEDY, it actually means to be utf8 compatible (PCRE8).

Could you confirm that your pcre lib was compiled with utf8 enabled? as the use of this modifier without utf8 being enabled when pcre is compiled will result in the match function returning an error rather than any matches.

it would seem that my server has NOT been configured with PCRE_UTF8. I have will try to recompile PCRE with UTF8 support. But would it be better to give a warning from the Zend Framework when PCRE are used and it is not supported?

I'll get back on this to let you know if it works.

Posted by Thomas Weidner (thomas) on 2010-08-08T02:41:53.000+0000

Now a notice is thrown when UTF-8 is not available.

Note that UTF-8 is available within vanilla php installations.
Additionally it should be mentioned that the request could even work without an exception by PCRE because it depends on the given input how PCRE behaves.