php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29127 PHP has encountered an Access Violation
Submitted: 2004-07-14 01:30 UTC Modified: 2004-07-28 20:56 UTC
Votes:16
Avg. Score:5.0 ± 0.0
Reproduced:16 of 16 (100.0%)
Same Version:14 (87.5%)
Same OS:14 (87.5%)
From: bojo at gvea dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.0.0 OS: Windows 2003 Server
Private report: No CVE-ID: None
 [2004-07-14 01:30 UTC] bojo at gvea dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-14 13:23 UTC] stuart_lindley at dsl dot pipex dot com
I am having the same problem with the final release, i've been having it since RC3, but i'm usng WindowsXP Pro with IIS 5.1 using the php5isapi.dll 

My exact error is 

PHP has encountered an Access Violation at 010173CD

it also causes a HTTP1.1/500 Internal Server Error


Final Note:
Apache2.0.50 with PHP 5.00 works perfectly fine
 [2004-07-14 15:43 UTC] Andreas at Oslos dot Net
I'm also concerned from this error, it occours since RC3.

My system is based on Windows Server 2003, IIS 6.

By replacing the php5isapi.dll from final release with the one from RC2, php works without any errors.

Error MSG:
PHP has encountered an Access Violation at ... (as example 01B973CD)
 [2004-07-14 18:33 UTC] jonathanjarvis at hotmail dot com
We can't use 5.0.0 or 4.3.8 until the access violation bugs on windows are fixed.

Here is a list of reported access violation bugs:
http://bugs.php.net/bug.php?id=28740 - Bogus
http://bugs.php.net/bug.php?id=28799 - Open
http://bugs.php.net/bug.php?id=28844 - No Feedback
http://bugs.php.net/bug.php?id=28873 - No Feedback
http://bugs.php.net/bug.php?id=28898 - Bogus
http://bugs.php.net/bug.php?id=28929 - Open
http://bugs.php.net/bug.php?id=28942 - Bogus
http://bugs.php.net/bug.php?id=28954 - Bogus
http://bugs.php.net/bug.php?id=28977 - Bogus
 [2004-07-14 22:52 UTC] taomyn at myway dot com
The only thing I can add so far is that code I have that I can consistently produce this error with, my own website counter code, fails in only 3 of the 5 sites I have configured under IIS 6. The other two do not exhibit this error, but I cannot yet see a difference - I am still searching and will report any new findings.

If I add the code to a sixth site that doesn't normally call the counter, it too fails.

Very weird stuff!
 [2004-07-14 23:31 UTC] alantan at po dot tagnetwork dot net
I had to "downgrade" back to PHP5 RC2 for the same reason...

Was working on my API and noticed that all scripts run fine but at the very end of the page got the same Access Violation error, very odd...
 [2004-07-15 14:37 UTC] edink@php.net
Help needed to track down this issue. Who is volunteering to test builds (write to edink@php.net)?

Also try switching dlls the other way around 5.0.0's php5ts.dll and RC2's php5isapi.dll.
 [2004-07-15 18:17 UTC] edink@php.net
Could you try php5ts.dll from http://emini.dk/php5ts-zend-mm.zip
 [2004-07-16 02:11 UTC] Andreas at Oslos dot Net
Installed your new php5ts.dll, it seems to work with the PHP 5.0.0 Final on Windows Server 2003 (IIS 6).

Thanks!
 [2004-07-16 12:39 UTC] justin at jphil dot net
the access violation seems to have gone away. I'm guessing that this has fixed the problem? What was changed in the dll??

Thanks!
 [2004-07-16 12:44 UTC] taomyn at myway dot com
Same dll fixed the problem for me too - thanks,

Taomyn
 [2004-07-17 15:33 UTC] Andreas at Oslos dot Net
as update to my post above , sometimes the error appears now when i try to use phpMyAdmin 2.5.6!

Using Windows Server 2003, IIS6, PHP, 5.0.0 Final with this php5ts.dll, witch seems to work with all of my own scripts, but they are not as complex as phpMyAdmin.

Thats all i can say about it, but if you can tell me how to make something like an debug log with php, i will try to help closing this bug.
 [2004-07-19 03:25 UTC] l_anjanesh at yahoo dot com
Hi
I posted the same bug at a different location (bug id : 28799) and I got this reply from one of the php guys team.

Could you try php5ts.dll from http://emini.dk/php5ts-zend-mm.zip

I did not try it out myself since I've to complete some projects in ver 4.3.7. So updating to ver 5 will take some time for me. But let me know if this one works absolutely fine.
Thanks
Anjanesh
 [2004-07-19 06:34 UTC] naaokth at free dot fr
>>Could you try php5ts.dll from http://emini.dk/php5ts-zend-mm.zip<<

i tried it, it work very nice ^^ no more error THX
 [2004-07-19 13:15 UTC] taomyn at myway dot com
Damn, now I'm getting a similar error with other PHP, and it's random i.e. sometimes it works other times I get the access violation.
 [2004-07-20 16:06 UTC] justin at jphil dot net
After thinking that the suggested .dll replacement had fixed the Access violation error I was disappointed to see the error showing itself here and there again. However now it seems to be only after relatively complex scripts are run (XML_RPC in this case) and even then only perhaps every 10th time the script is run... so the problem is still there...

My system is IIS6, Windows Server 2003 SE, PHP 5.0.0 (with replaced php5ts.dll)

Justin
 [2004-07-21 22:29 UTC] noidea_2 at hotmail dot com
I'm also getting the Access Violation error randomly. Email me if I have to test things.
 [2004-07-22 13:37 UTC] jmjt at lut dot fi
Any possibility of getting a version for PHP 4.3.8 of the DLL? The access violation bug is highly reproducible also there and I'm big stuck here not wanting to go below 4.3.8 because of the serious bugs and not ready to go to 5.0.0 yet.
 [2004-07-23 02:19 UTC] SI at wcreplays dot com
getting same errors, also win2k3. have had the error on a 3 line file <? echo "blah"; ?>, also have it in the middle of a dir enum loop, consistently after same element, the dir I am displaying only has subdirs. Email me if I should test stuff.
 [2004-07-23 02:29 UTC] edink@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2004-07-23 02:36 UTC] jbrady at sbccd dot cc dot ca dot us
I had this bug, but the latest snap fixed it. But it didn't fix the crash in IIS when you stop the service.

I just upgraded from php 4.3.8 to 5.0 on my Windows XP machine, and got it working, only to get the access violation. At that time, IIS also crashed when I tried to stop the service (using "net stop "IIS Admin"). I read this bug report, got the latest snapshot, and it fixed the access violation that was reported in the browser.

Now, when ever I start IIS, run a page containing "<?php phpinfo(); ?>", and then try to stop IIS, it crashes. It brings up the microsoft crash report, asking to send it to Microsoft.
 [2004-07-28 20:16 UTC] bojo at gvea dot com
Access Violation errors continue to happen after a clean rebuild using both the 5.0.x-dev and 5.1.x-dev snapshots.  However, the errors occur at a lower frequency.
 [2004-07-28 20:56 UTC] edink@php.net
The issue reported was solved. Please keep this report closed.

If you can reproduce another problem please open a new report and include the reproducing code.
 [2004-08-03 09:18 UTC] stangly_wrong at msn dot com
hi all

my php5 entironment follows 

php5 release
mysql 4.0
windows2003 iis

i correct install php5 and enable mysql modul, but i run php program , it return follows error s

PHP has encountered an Access Violation at 010173CD

i need help , please help me .
thank you ~~
 [2004-08-04 23:26 UTC] simmons at cooscurryelectric dot com
I have fought with this to and I resolved it here:
2003 Server
IIS 6.0
PHP 5
MySql

My resolution was to ensure all mapping to the isapi module in IIS was set to the php directory not the system32directory i.e. webserver extensions, web sites root, and default website
Running: 
IMAP PHP based mail
PHPmyadmin etc.... no access violations
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC