#44765 [NEW]: Wrong return type
| From: | php at htmlland dot net | Date: | Thu, 17 Apr 2008 18:51:50 +0000 |
| Subject: | #44765 [NEW]: Wrong return type | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-721@lists.php.net to get a copy of this message | ||
From: php at htmlland dot net
Operating system: N/A
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Wrong return type
Description:
------------
The return value found in the description section on the documentation
pages for preg_match and preg_match_all say int but then the "Return
Values" box sates on-error FALSE will be returned.
The type needs to be changed to mixed and a warning box shown describing
the diffrence between == and ===. See the documentation for array_search
(the return values section).
--
Edit bug report at http://bugs.php.net/?id=44765&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44765&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44765&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44765&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44765&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44765&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44765&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44765&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44765&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44765&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44765&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44765&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44765&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44765&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44765&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44765&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44765&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44765&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44765&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44765&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44765&r=mysqlcfg