From: bojo at gvea dot com Operating system: Windows 2003 Server PHP version: 5.0.0 PHP Bug Type: Reproducible crash Bug description: PHP has encountered an Access Violation
Description: ------------ This is a bug that also occured in PHP5 RC3 as referenced here: http://bugs.php.net/bug.php?id=28799 The bug system has also reported this as an issue with earlier versions of PHP. If it is not prudent to open a similar bug issue for new final release versions, then by all means this should be closed. The problem: The IIS6 server will randomly throw an error like: PHP has encountered an Access Violation at 017AE084 Alternatively, and even more rarely, PHP will throw fatal errors: Fatal error: Cannot redeclare class gfunc in D:\htdocs\include\global_functions.php on line 2 -- or -- Fatal error: Call to undefined function OCILogon() in D:\htdocs\include\classes\DatabaseHandler.php on line 45 The gfunc class is only included once using the include_once() directive. OCILogon() is part of the oci8 module, and obviously doesn't seem to get included every few reloads. The DatabaseHandler is just a simple interface for passing SQL queries back and forth, which references most of the oci8 functions. There is no consistancy with these errors. A standard page in my environment makes various oci8 queries, and uses the PHP5 XSL DOM transform (XML->HTML output). Smaller pieces of code that exclusively make use of these features do not seem to crash after several consecutive reloads, however, larger more complicated applications will crash every few page reloads and then work the next few. Actual result: -------------- PHP has encountered an Access Violation at 017AE084 -- Edit bug report at http://bugs.php.net/?id=29127&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29127&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29127&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29127&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29127&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29127&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29127&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29127&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29127&r=support Expected behavior: http://bugs.php.net/fix.php?id=29127&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29127&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29127&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29127&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29127&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29127&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29127&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29127&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29127&r=float