Edit report at https://bugs.php.net/bug.php?id=61730&edit=1

 ID:                 61730
 Updated by:         larue...@php.net
 Reported by:        joe dot lencioni at gmail dot com
 Summary:            Segfault from array_walk modifying an array passed
                     by reference
 Status:             Closed
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   2.6.32-131.0.15.el6.x86_64
 PHP Version:        5.3.10
 Assigned To:        laruence
 Block user comment: N
 Private report:     N

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2012-05-06 12:42:08] larue...@php.net

Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php



------------------------------------------------------------------------
[2012-05-06 12:31:28] larue...@php.net

Automatic comment on behalf of laruence
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=7ccd5943924fd4ad9adcad1fbc547adc79114bff
Log: Fixed bug #61730 (Segfault from array_walk modifying an array passed by 
reference)

------------------------------------------------------------------------
[2012-05-06 12:30:32] larue...@php.net

Automatic comment on behalf of laruence
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=7ccd5943924fd4ad9adcad1fbc547adc79114bff
Log: Fixed bug #61730 (Segfault from array_walk modifying an array passed by 
reference)

------------------------------------------------------------------------
[2012-05-06 12:03:21] larue...@php.net

Automatic comment on behalf of laruence
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=7ccd5943924fd4ad9adcad1fbc547adc79114bff
Log: Fixed bug #61730 (Segfault from array_walk modifying an array passed by 
reference)

------------------------------------------------------------------------
[2012-05-06 11:44:20] larue...@php.net

a more proper test script without trigger the warning:

$myArray = array_fill(0, 10, 1);

array_walk(
    $myArray,
    function($value, $key) use (&$myArray)
    {
        unset($myArray[$key]);
    }
);

------------------------------------------------------------------------


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

    https://bugs.php.net/bug.php?id=61730


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61730&edit=1

Reply via email to