#45166 [Opn]: Note, that behaviour has been changed as from 5.2.3

From: Date: Wed, 05 Nov 2008 16:49:07 +0000
Subject: #45166 [Opn]: Note, that behaviour has been changed as from 5.2.3
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1380@lists.php.net to get a copy of this message
ID: 45166 Updated by: philip@php.net Reported By: marrtins at dqdp dot net Status: Open Bug Type: Documentation problem PHP Version: Irrelevant New Comment: 4.3.1 - 5.2.1: cd 5.2.2 - 5.2.6: Boolean false 5.3.0a2: cd Previous Comments: ------------------------------------------------------------------------ [2008-11-05 16:45:38] marrtins at dqdp dot net Don`t know *exact* version of change, I have tested on PHP versions listed above and specified behaviours on each that version available to me. ------------------------------------------------------------------------ [2008-11-05 16:29:09] vrana@php.net Please specify exact version of the change. ------------------------------------------------------------------------ [2008-06-04 08:57:16] marrtins at dqdp dot net Description: ------------ Please add a note in http://lv.php.net/manual/en/function.substr.php that substr() behaviour has been changed on newer versions (actually - why?!). Thanks. Reproduce code: --------------- v5.2.0, v4.4.0 php -r "print substr('cd', -3);" v5.2.3, v5.2.5, v5.2.6 php -r "print substr('cd', -3);" Expected result: ---------------- v5.2.0, v4.4.0 cd v5.2.3, v5.2.5, v5.2.6 cd Actual result: -------------- v5.2.0, v4.4.0 cd v5.2.3, v5.2.5, v5.2.6 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45166&edit=1

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