#47456 [NEW]: Missing PCRE option 'J'

From: Date: Thu, 19 Feb 2009 23:12:33 +0000
Subject: #47456 [NEW]: Missing PCRE option 'J'
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-134019@lists.php.net to get a copy of this message
From: rodricg at sellingsource dot com Operating system: Linux PHP version: 5.3CVS-2009-02-19 (CVS) PHP Bug Type: PCRE related Bug description: Missing PCRE option 'J' Description: ------------ The PCRE extension does not recognize the 'J' option for setting PCRE_DUPNAMES. Reproduce code: --------------- <?php preg_match_all('/(?<chr>[ac])(?<num>\d)|(?<chr>[b])/J', 'a1bc3', $m, PREG_SET_ORDER); print_r($m); ?> Expected result: ---------------- Array ( [0] => Array ( [0] => a1 [chr] => a [1] => a [num] => 1 [2] => 1 ) [1] => Array ( [0] => b [chr] => b [1] => [num] => [2] => [3] => b ) [2] => Array ( [0] => c3 [chr] => c [1] => c [num] => 3 [2] => 3 ) ) Actual result: -------------- PHP Warning: preg_match(): Unknown modifier 'J' in .... -- Edit bug report at http://bugs.php.net/?id=47456&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47456&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47456&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47456&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47456&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47456&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47456&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47456&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47456&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47456&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47456&r=support Expected behavior: http://bugs.php.net/fix.php?id=47456&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47456&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47456&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47456&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47456&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47456&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47456&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47456&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47456&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47456&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47456&r=mysqlcfg

« previous php.bugs (#134019) next »