PHP :: Bug #45166 :: substr() overflow changes
| Bug #45166 | substr() overflow changes | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2008-06-04 08:57 UTC | Modified: | 2008-11-05 18:55 UTC |
|
||||||||||
| From: | marrtins at dqdp dot net | Assigned: | ||||||||||||
| Status: | Closed | Package: | Strings related | |||||||||||
| PHP Version: | 5.2 | OS: | ||||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2008-06-04 08:57 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2008-11-05 16:29 UTC] vrana@php.net
[2008-11-05 16:45 UTC] marrtins at dqdp dot net
[2008-11-05 16:49 UTC] philip@php.net
[2008-11-05 16:50 UTC] philip@php.net
[2008-11-05 16:54 UTC] marrtins at dqdp dot net
[2008-11-05 17:14 UTC] philip@php.net
[2008-11-05 18:55 UTC] felipe@php.net