Doc #65792 [NEW]: Incomplete return values

From: Date: Mon, 30 Sep 2013 20:18:29 +0000
Subject: Doc #65792 [NEW]: Incomplete return values
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10336@lists.php.net to get a copy of this message
From: chris at unix-ninja dot com Operating system: PHP version: 5.5.4 Package: Documentation problem Bug Type: Documentation Problem Bug description:Incomplete return values Description: ------------ --- From manual page: http://www.php.net/function.strcmp#refsect1-function.strcmp- returnvalues --- The documentation does not specify that strcmp() returns NULL on error. This is important as it could be incorrectly evaluated as a successful result if using simple evaluation. For completeness, the return value of NULL on error should be mentioned in the documentation. Test script: --------------- @ $ans == strcmp(array(), $string); $ans now equals a successful hit. (which is wrong, but expected behaviour) -- Edit bug report at https://bugs.php.net/bug.php?id=65792&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65792&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65792&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65792&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65792&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65792&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65792&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65792&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65792&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65792&r=support Expected behavior: https://bugs.php.net/fix.php?id=65792&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65792&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65792&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65792&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65792&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65792&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65792&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65792&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65792&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65792&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65792&r=mysqlcfg

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