#38175 [NEW]: PHP has encountered an Access Violation at 018994A9 - Known Cause

From: Date: Fri, 21 Jul 2006 14:14:49 +0000
Subject: #38175 [NEW]: PHP has encountered an Access Violation at 018994A9 - Known Cause
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-99712@lists.php.net to get a copy of this message
From: milanz at gmail dot com Operating system: Windows 2003 Server PHP version: 5CVS-2006-07-21 (CVS) PHP Bug Type: IIS related Bug description: PHP has encountered an Access Violation at 018994A9 - Known Cause Description: ------------ I am running the following configuration: IIS6 (not by choice =) Windows 2003 Server PHP Version 5.1.4 Oracle 9i (On a different server) All works well under Apache2, however the following error occures under IIS6; "PHP has encountered an Access Violation at 018994A9". I have tracked down the problem to a resource ID to an Oracle connection that is passed into the constructor of a class as a global (see code below). I can pass in any other variable as a global in the constructor, but not a Oracle resource. Reproduce code: --------------- ---------------File 1 - dbConnect.inc.php---------------- $oci_c1 = oci_connect(OCI_USER, OCI_PASS, OCI_TNS); if (!$oci_c1) { ... more code ... exit; } ---------------File 2 - Document.class.php -------------- require_once('dbConnect.inc.php'); class Document { public function __construct() { global $oci_c1, $_SITE; .... more code .... } } Expected result: ---------------- It is expected that the resourceID ($oci_c1) becomes avaliable to the class as it does when run under Apache. If you change the first line of the class to read: class Document { public function __construct() { global $_SITE; .... more code .... } } All works fine, and you have access to the $_SITE var. Actual result: -------------- "PHP has encountered an Access Violation at 018994A9". -- Edit bug report at http://bugs.php.net/?id=38175&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38175&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38175&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38175&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38175&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38175&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38175&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38175&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38175&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38175&r=support Expected behavior: http://bugs.php.net/fix.php?id=38175&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38175&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38175&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38175&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38175&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38175&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38175&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38175&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38175&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38175&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38175&r=mysqlcfg

« previous php.bugs (#99712) next »