note 75586 added to function.substr
| From: | hansfn at gmail dot com | Date: | Wed, 06 Jun 2007 23:30:13 +0000 |
| Subject: | note 75586 added to function.substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127258@lists.php.net to get a copy of this message | ||
In PHP 5.2.2 (and probably 4.4.x) the behaviour of substr has changed for negative start index
larger than the string length - now returning false in stead of the string itself. Read http://bugs.php.net/bug.php?id=41375
----
Server IP: 69.147.83.197
Probable Submitter: 158.38.165.28 (proxied: 127.0.0.1)
----
Manual Page -- http://www.php.net/manual/en/function.substr.php
Edit -- https://master.php.net/note/edit/75586
Del: integrated -- https://master.php.net/note/delete/75586/integrated
Del: useless -- https://master.php.net/note/delete/75586/useless
Del: bad code -- https://master.php.net/note/delete/75586/bad+code
Del: spam -- https://master.php.net/note/delete/75586/spam
Del: non-english -- https://master.php.net/note/delete/75586/non-english
Del: in docs -- https://master.php.net/note/delete/75586/in+docs
Del: other reasons-- https://master.php.net/note/delete/75586
Reject -- https://master.php.net/note/reject/75586
Search -- https://master.php.net/manage/user-notes.php