svn: /phpdoc/en/trunk/reference/strings/functions/ substr.xml

From: Date: Thu, 22 Oct 2009 15:53:26 +0000
Subject: svn: /phpdoc/en/trunk/reference/strings/functions/ substr.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5189@lists.php.net to get a copy of this message
rquadling Thu, 22 Oct 2009 15:53:26 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=289854 Log: substr.xml() length of 0/false/null will return an empty string. Fix bug#49951 Bug: http://bugs.php.net/49951 (Open) substr() unexpected result when length is NULL Changed paths: U phpdoc/en/trunk/reference/strings/functions/substr.xml Modified: phpdoc/en/trunk/reference/strings/functions/substr.xml =================================================================== --- phpdoc/en/trunk/reference/strings/functions/substr.xml 2009-10-22 15:21:22 UTC (rev 289853) +++ phpdoc/en/trunk/reference/strings/functions/substr.xml 2009-10-22 15:53:26 UTC (rev 289854) @@ -86,6 +86,10 @@ <parameter>start</parameter> denotes a position beyond this truncation, an empty string will be returned. </para> + <para> + If <parameter>length</parameter> is given and is <literal>0</literal>, + &false; or &null; an empty string will be returned. + </para> <example> <title>Using a negative <parameter>length</parameter></title> <programlisting role="php">

« previous php.doc.cvs (#5189) next »