#45166 [Asn->Ana]: substr() overflow changes
| From: | philip@php.net | Date: | Wed, 05 Nov 2008 17:14:09 +0000 |
| Subject: | #45166 [Asn->Ana]: substr() overflow changes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130659@lists.php.net to get a copy of this message | ||
ID: 45166
Updated by: philip@php.net
-Summary: Note, that behaviour has been changed as from 5.2.3
Reported By: marrtins at dqdp dot net
-Status: Assigned
+Status: Analyzed
Bug Type: Strings related
-PHP Version: 5.2
+PHP Version: 5.3
Assigned To: iliaa
New Comment:
It appears to be. The change came from the following NEWS entry:
- Fixed bug #40754 (added substr() & substr_replace() overflow checks).
(Ilia)
Some concerns were expressed in #40754 about the change... I'm changing
this bug to "String related" until we know for sure.
Previous Comments:
------------------------------------------------------------------------
[2008-11-05 17:06:22] bjori@php.net
See also bug#40754
------------------------------------------------------------------------
[2008-11-05 16:54:58] marrtins at dqdp dot net
Seems to me it`s a bug, not documention problem.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/45166
--
Edit this bug report at http://bugs.php.net/?id=45166&edit=1