solaris8 + php4.2.2 = memory corruption?

From: Date: Tue, 30 Jul 2002 10:34:16 +0000
Subject: solaris8 + php4.2.2 = memory corruption?
Groups: php.dev 
Request: Send a blank email to php-dev+get-86331@lists.php.net to get a copy of this message
Hi I'm seeing some rather weird memory corruption under Solaris 8 with php4.2.2 - seemingly random elements of arrays are replaced with the contents of $GLOBALS array. For example, at one point in my code element named el_373 in an array is empty (no value or "") and a few lines later (none if which actually do anything with the array) it's value suddenly becomes this: [el_373] => Array
          (
              [CVSROOT] => /home/cvsroot
              [DICTIONARY] => estonian
              [DISPLAY] => localhost:10.0
.. continued ... Sometimes it's even as silly as: $val = ""; var_dump($arr); at which point the contents of $arr are corrupted (one element contains the contents of $GLOBALS) and when I move those 2 lines around, like this: var_dump($arr); $val = ""; then $arr contains correct values. Mind you, it does not occur always, only under some circumstances which I haven't yet figured out. The exact same code works (with the same versions of Apache and PHP) just fine in Linux and FreeBSD. I'll try to create a simplified testcase and an hopefully useful bug report, but until I manage to do that - Has anyone else perhaps seen such behaviour before? What kind of other information (besides a testcase) would one need to try to get to the roots of this problem? Here is a static copy (the site itself is not accessible outside the firewall) of the phpinfo() output. http://aw.struktuur.ee/vv_testid/solaris/info.html -- Anti Veeranna

« previous php.dev (#86331) next »