PHP 4.0 Bug #6375 Updated: php.exe Eception: access violation(0xc0000005), Address: 0x1007cefa

From: Date: Mon, 28 Aug 2000 03:33:08 +0000
Subject: PHP 4.0 Bug #6375 Updated: php.exe Eception: access violation(0xc0000005), Address: 0x1007cefa
Groups: php.dev 
Request: Send a blank email to php-dev+get-30899@lists.php.net to get a copy of this message
ID: 6375 User Update by: peter@helpnet.com.au Status: Open Bug Type: Reproduceable crash Description: php.exe Eception: access violation(0xc0000005), Address: 0x1007cefa I found a possible cause. I used session_save_path() to pass the database name to the session functions. The result was a non string. session_save_path() would print correctly some times and failed others. In the end I found I could reliably access session_save_path() via strval(session_save_path()). I threw out session_save_path and just set a global variable. When session_save_path() printed, it always printed the right value. There were no mystery characters. Perhaps print performs the equivalent to strval(). Session_save_path() seemed to corrupt when passed as a value to a function or to another variable. Sometimes it would blow up the first function it passed to (in this case a generic db_read() function) and sometimes it would blow up a function inside the db_read() function, usually the mysql_select_db. When I inserted diagnostic print statements, I could print the database name from session_save_path() but not the value received by db_read(). PS, if you edit this entry, please insert the x in Eception in the Short Desc. then remove this PS. Full Bug description available at: http://bugs.php.net/?id=6375

« previous php.dev (#30899) next »