|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2009-02-19 23:36 UTC] felipe@php.net
[2009-02-19 23:47 UTC] rodricg at sellingsource dot com
[2010-12-20 14:26 UTC] jani@php.net
-Package: Feature/Change Request
+Package: PCRE related
[2012-01-20 19:43 UTC] nlopess@php.net
-Status: Assigned
+Status: Open
-Assigned To: nlopess
+Assigned To:
[2016-09-05 08:29 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2016-09-05 08:29 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 16:00:01 2025 UTC |
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 ....