note 119150 added to migration70.incompatible
| From: | Frank | Date: | Mon, 11 Apr 2016 15:40:13 +0000 |
| Subject: | note 119150 added to migration70.incompatible | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-205199@lists.php.net to get a copy of this message | ||
The substr function has also been changed in a backward incompatible way.
<?php
substr("test",4); # false in PHP 5, "" in PHP 7
?>
In fact, this is the only thing we had to change in a number of places for our code base to run on
PHP 7. It's definitely an improvement though, as the old behavior tended to cause bugs in
border cases.
----
Server IP: 72.52.91.14
Probable Submitter: 2001:980:4205:1:5c15:aeda:49c9:ce49
----
Manual Page -- http://php.net/manual/en/migration70.incompatible.php
Edit -- https://master.php.net/note/edit/119150
Del: integrated -- https://master.php.net/note/delete/119150/integrated
Del: useless -- https://master.php.net/note/delete/119150/useless
Del: bad code -- https://master.php.net/note/delete/119150/bad+code
Del: spam -- https://master.php.net/note/delete/119150/spam
Del: non-english -- https://master.php.net/note/delete/119150/non-english
Del: in docs -- https://master.php.net/note/delete/119150/in+docs
Del: other reasons-- https://master.php.net/note/delete/119150
Reject -- https://master.php.net/note/reject/119150
Search -- https://master.php.net/manage/user-notes.php