|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-01-07 10:40 UTC] jacky at xsteach dot com
-Status: Open
+Status: Closed
[2016-01-07 10:40 UTC] jacky at xsteach dot com
[2016-01-07 11:15 UTC] requinix@php.net
-Status: Closed
+Status: Not a bug
-Package: PHP Language Specification
+Package: Strings related
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 22:00:02 2025 UTC |
Description: ------------ The behavior of substr function have been changed on php 7, but not mention on the document. Test script: --------------- <?php $s = substr('str',3); var_dump($s); // result on php 5.x // bool(false) // result on php 7 // string(0) "" Expected result: ---------------- have the same result Actual result: -------------- the return type not compatible.