[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-bugs
Subject:    [DOC-BUGS] [PHP-BUG] Doc #54954 [NEW]: preg_match() returns zero if an error occurred
From:       "benoit dot chenu at gmail dot com"<php-bugs () lists ! php ! net>
Date:       2011-05-30 17:34:31
Message-ID: bug-54954 () bugs ! php ! net
[Download RAW message or body]

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


-- 
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic