#50107 [NEW]: return value should note FALSE

From: Date: Fri, 06 Nov 2009 22:14:49 +0000
Subject: #50107 [NEW]: return value should note FALSE
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3070@lists.php.net to get a copy of this message
From: alex dot schuch at gmx dot de Operating system: GNU/Linux PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: return value should note FALSE Description: ------------ A quick look over the "return value" box suggests that this function always returns a string. This is not the case as mentioned in the "start" parameter box. Give a hint in the "return value" box about this behaviour. Reproduce code: --------------- --- From manual page: function.substr#Return Values --- var_dump(substr('a', 1)); Expected result: ---------------- Expected description: Returns the extracted part of string or FALSE in case of an error. Actual result: -------------- -/- -- Edit bug report at http://bugs.php.net/?id=50107&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50107&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50107&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50107&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50107&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50107&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50107&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50107&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50107&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50107&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50107&r=support Expected behavior: http://bugs.php.net/fix.php?id=50107&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50107&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50107&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50107&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50107&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50107&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50107&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50107&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50107&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50107&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50107&r=mysqlcfg

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