ID: 12776
Updated by: yohgaki
Reported By: [EMAIL PROTECTED]
Old Status: No Feedback
Status: Suspended
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 4.0.6
New Comment:
Hi sander,
I know this problem exists and this bug cannot be fixed easily....
Status = SUSPENDED
TO PHP USERS: *ONLY* change parameter passed! *Never* change array or
array elements in walk funciton.
Previous Comments:
------------------------------------------------------------------------
[2002-01-27 05:19:57] [EMAIL PROTECTED]
No feedback.
------------------------------------------------------------------------
[2002-01-06 07:37:36] [EMAIL PROTECTED]
Does this problem still occur with 4.1.1?
------------------------------------------------------------------------
[2001-08-16 17:25:58] [EMAIL PROTECTED]
On my machine, this will crash it:
function test($val,$key) {
global $globalArray;
$globalArray[]=$key;
}
$arr=array('k'=>'v');
array_walk($arr,'test');
echo "testing".$globalArray[0];
Changing the last line to:
echo "test".$globalArray[0];
makes it work. Uh?
bt:
#0 0x4013913e in memcpy () from /lib/i686/libc.so.6
#1 0xbfffe3b0 in ?? ()
#2 0x080f2550 in execute (op_array=0x816c334) at
./zend_execute.c:1105
#3 0x080da832 in zend_execute_scripts (type=8, file_count=3) at
zend.c:806
#4 0x0805faab in php_execute_script (primary_file=0xbffff8d0) at
main.c:1310
------------------------------------------------------------------------
[2001-08-16 17:22:29] [EMAIL PROTECTED]
Oops, never mind, it is not fixed in CVS. It just morphed slightly.
------------------------------------------------------------------------
[2001-08-16 17:18:35] [EMAIL PROTECTED]
Looks like it is fixed in CVS
------------------------------------------------------------------------
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/?id=12776
Edit this bug report at http://bugs.php.net/?id=12776&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]