#47653 [NEW]: Error in documentation for preg_match_all

From: Date: Fri, 13 Mar 2009 21:01:15 +0000
Subject: #47653 [NEW]: Error in documentation for preg_match_all
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1980@lists.php.net to get a copy of this message
From: cloudyovercuba at gmail dot com Operating system: Ubuntu Linux PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Error in documentation for preg_match_all Description: ------------ In the documentation for preg_match_all at http://www.php.net/preg_match_all , example #3 shows that a example regex for named subpatterns is this: /(?<name>\w+): (?<digit>\d+)/ This does not work, and returns an error. The proper regex would be this: /(?P<name>\w+): (?P<digit>\d+)/ -- Edit bug report at http://bugs.php.net/?id=47653&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47653&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47653&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47653&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47653&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47653&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47653&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47653&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47653&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47653&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47653&r=support Expected behavior: http://bugs.php.net/fix.php?id=47653&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47653&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47653&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47653&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47653&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47653&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47653&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47653&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47653&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47653&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47653&r=mysqlcfg

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