#50107 [Opn->Csd]: return value should note FALSE

From: Date: Mon, 09 Nov 2009 09:57:48 +0000
Subject: #50107 [Opn->Csd]: return value should note FALSE
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3075@lists.php.net to get a copy of this message
ID: 50107 Updated by: rquadling@php.net Reported By: alex dot schuch at gmx dot de -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: GNU/Linux PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2009-11-09 09:57:37] svn@php.net Automatic comment from SVN on behalf of rquadling Revision: http://svn.php.net/viewvc/?view=revision&revision=290408 Log: Return false on failure. Fix bug#50107 ------------------------------------------------------------------------ [2009-11-06 22:14:49] alex dot schuch at gmx dot de 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 this bug report at http://bugs.php.net/?id=50107&edit=1

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