Re: Bugfix #21918
| From: | Ilia Alshanetsky | Date: | Tue, 12 Aug 2003 12:39:25 +0000 |
| Subject: | Re: Bugfix #21918 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3868@lists.php.net to get a copy of this message | ||
On August 12, 2003 02:27 am, Zeev Suraski wrote:
> At 05:16 11/08/2003, Ilia Alshanetsky wrote:
> >+1
> >
> >This patch not only fixes the above mentioned bugs, but also serveral
> >backwards compatibility issues that occured due to the fix for bug #18140.
>
> Can you provide an example?
Original Bugs that caused BC break.
php -r ' $arr = array(0=>0,-1=>0); $arr[] = 0; '
This caused a segmentation fault in 4.2.3
Here is one example of the problem.
php -r ' $arr[-2] = 1; $arr[] = 2; print_r($arr); '
PHP 4.2.3
Array
(
[-2] => 1
[-1] => 2
)
PHP 4.3.X/5.X (wo/patch)
Array
(
[-2] => 1
[0] => 2
)
PHP 4.3.X/5.X (w/patch)
Array
(
[-2] => 1
[-1] => 2
)
Ilia