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

From: Date: Sat, 22 Jul 2006 15:52:54 +0000
Subject: #38175 [Opn->Bgs]: PHP has encountered an Access Violation at 018994A9 - Known Cause
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-99757@lists.php.net to get a copy of this message
ID: 38175 Updated by: sniper@php.net Reported By: milanz at gmail dot com -Status: Open +Status: Bogus Bug Type: IIS related Operating System: Windows 2003 Server PHP Version: 5CVS-2006-07-21 (CVS) New Comment: We are aware of PHP's problems with stability under IIS and are working to rectify the problem. Unfortunatly your bug report does not contain any extra useful information and we already have enough bug reports open about this issue. If you can provide more detailed information such as a reproducable crash or a backtrace please do so and reopen this bug. Otherwise please keep trying new releases as we are working to resolve the problems on this platform Thanks for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2006-07-21 14:14:49] milanz at gmail dot com 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 this bug report at http://bugs.php.net/?id=38175&edit=1

« previous php.bugs (#99757) next »