Doc #54954 [NEW]: preg_match() returns zero if an error occurred

From: Date: Mon, 30 May 2011 17:34:31 +0000
Subject: Doc #54954 [NEW]: preg_match() returns zero if an error occurred
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6670@lists.php.net to get a copy of this message
From: Operating system: PHP version: 5.3.6 Package: Documentation problem Bug Type: Documentation Problem Bug description:preg_match() returns zero if an error occurred Description: ------------ --- From manual page: http://www.php.net/manual/en/function.preg-match.php#Return Values --- A bug was already opened (#51741) about this but not treated. If an error occurs (like reaching pcre.backtrack_limit), preg_match doesn't return FALSE as described in the documentation but returns 0. It should be nice to update the documentation. -- Edit bug report at http://bugs.php.net/bug.php?id=54954&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54954&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54954&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54954&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54954&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54954&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54954&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54954&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54954&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54954&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54954&r=support Expected behavior: http://bugs.php.net/fix.php?id=54954&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54954&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54954&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54954&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54954&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54954&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54954&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54954&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54954&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54954&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54954&r=mysqlcfg

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