#45166 [Opn]: Note, that behaviour has been changed as from 5.2.3
| From: | marrtins at dqdp dot net | Date: | Wed, 05 Nov 2008 16:54:59 +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-1384@lists.php.net to get a copy of this message | ||
ID: 45166
User updated by: marrtins at dqdp dot net
Reported By: marrtins at dqdp dot net
Status: Open
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
Seems to me it`s a bug, not documention problem.
Previous Comments:
------------------------------------------------------------------------
[2008-11-05 16:50:50] philip@php.net
Question: Did 5.3.0 intentionally revert to earlier behaviour? And if
not already, we need a test case in php-src for this.
------------------------------------------------------------------------
[2008-11-05 16:49:07] philip@php.net
4.3.1 - 5.2.1: cd
5.2.2 - 5.2.6: Boolean false
5.3.0a2: cd
------------------------------------------------------------------------
[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