Doc #66420 [NEW]: Doc should mention that support of PCRE for UTF8 is broken prior to 5.3

From: Date: Sun, 05 Jan 2014 18:18:22 +0000
Subject: Doc #66420 [NEW]: Doc should mention that support of PCRE for UTF8 is broken prior to 5.3
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10814@lists.php.net to get a copy of this message
From: matteosistisette at gmail dot com Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Doc should mention that support of PCRE for UTF8 is broken prior to 5.3 Description: ------------ --- From manual page: http://www.php.net/reference.pcre.pattern.modifiers --- """ u (PCRE_UTF8) This modifier turns on additional functionality of PCRE that is incompatible with Perl. Pattern strings are treated as UTF-8. This modifier is available from PHP 4.1.0 or greater on Unix and from PHP 4.2.3 on win32. UTF-8 validity of the pattern is checked since PHP 4.3.5. """ Since the utf8 modifier is available since 4.1.0 (!!) one would expect utf8 support to work since that version unless otherwise stated in the documentation. (otherwise, what does one want a modifier for utf8 for, if utf8 is not supported?) No mention is done in this page that utf8 regular expressions on utf8 strings won't work in PHP versions prior to 5.3, but that is the case. See http://3v4l.org/ERDp5 Either utf8 is only supported as of 5.3.4, or there was a bug that rendered it useless that has only been fixed in 5.3.4. In either case, this must be documented with a gigantic red warning in this page. -- Edit bug report at https://bugs.php.net/bug.php?id=66420&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66420&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66420&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66420&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66420&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66420&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66420&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66420&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66420&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66420&r=support Expected behavior: https://bugs.php.net/fix.php?id=66420&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66420&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66420&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66420&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66420&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66420&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66420&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66420&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66420&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66420&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66420&r=mysqlcfg

« previous php.doc.bugs (#10814) next »