ID: 29253 Updated by: [EMAIL PROTECTED] Reported By: camka at email dot ee -Status: Open +Status: Feedback Bug Type: Arrays related Operating System: Unix, Win2000 PHP Version: 4.3.7 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2004-07-19 09:58:31] camka at email dot ee Description: ------------ when using array_diff with one of the parameters is $GLOBALS seems like the whole variable scope is messed up. Reproduce code: --------------- <?php $zz = $GLOBALS; $gg = 'afad'; var_dump(array_diff_assoc($GLOBALS, $zz)); echo $gg; // strange behavour. $gg is like an array!!! // var_dump($gg); // this call fails apache ?> Expected result: ---------------- expect seeing 'afad' and empty array; Actual result: -------------- array(0) { } Arra the length of "Arra" string depends on the length of $gg length; if uncomment the last line - apache child fails [Mon Jul 19 10:26:00 2004] [notice] child pid 10946 exit signal Segmentation fault (11 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29253&edit=1
