php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38175 PHP has encountered an Access Violation at 018994A9 - Known Cause
Submitted: 2006-07-21 14:14 UTC Modified: 2006-07-22 15:52 UTC
From: milanz at gmail dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 5CVS-2006-07-21 (CVS) OS: Windows 2003 Server
Private report: No CVE-ID: None
 [2006-07-21 14:14 UTC] 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". 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-22 15:52 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC