php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28799 PHP has encountered an Access Violation at 016E73DD
Submitted: 2004-06-15 19:29 UTC Modified: 2004-07-24 20:58 UTC
Votes:36
Avg. Score:4.8 ± 0.5
Reproduced:32 of 32 (100.0%)
Same Version:19 (59.4%)
Same OS:17 (53.1%)
From: l_anjanesh at yahoo dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.0.0RC3 OS: Windows 2003 Server Enterprise
Private report: No CVE-ID: None
 [2004-06-15 19:29 UTC] l_anjanesh at yahoo dot com
Description:
------------
Hello

I've finally decided to move to php5 (using IIS) because of its new features but now I'm having second thoughts.
I extracted all the php5 files to C:\PHP and did all the relevant configuring in IIS to php5 etc.

The first thing I tried out was phpinfo(); and it worked with no errors. BUT my MySQL settings does not exist. There is not a single "mysql" keyword in the phpinfo() page !!! All worked ok with php4.3.4. My MySQL ver is 4.0. This is strange because : I have a site already made in php4.3.4 and works OK. Now the html tags are showing but with the first line PHP has encountered an Access Violation at 016E73DD.
Then I did a test(index.php) in test folder the result was HTTP 500 Internal Server Error
The location http://localhost/test/index.php exists and works in php4.3.4. All it contains
<?php
print("Hello");
?>

This is strange because in one location theres all these html tags with php lines and displays the page except when trying to conect to the db (since mysql is not found) with the access violation error and then there is this other location which doesn't even load giving 500 internal server error.
I have NO IDEA what the problem is now.
If I can't find a solution to this I'll have to switch back to php4.
Please help
Thanks

This is what I did :
1. Extracted to C:\PHP5
2. Configured IIS to PHP5 files (php5isapi.dll)
3. Copied php5ts.dll to c:\windows\system32 (but did not delete php4ts.dll)
4. Made all the necessary settings in php.ini (as same as php.ini for php4 except the extensions dir to ext). Did not make any settings for mysql though since I never had to for php4.3.4 and it worked.
5. Made no changes to MySQL because the no: of times that I have configured php4, I first unzipped mysql & then php and everyhing worked. Therefore I did not unzip mysql again.

Reproduce code:
---------------
<?php
print("Hello");
?>

Expected result:
----------------
Hello

Actual result:
--------------
If html tags exists then they'll show with
PHP has encountered an Access Violation at 016E73DD
and of course fatal error for mysql connnection if mysql functions exist.

But if just php code is there then its
HTTP 500 Internal Server Error

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-18 15:50 UTC] jim at herrick dot net
I had the same issue after replacing 5.0.0RC2 with 5.0.0RC3 (and also with dev snapshot from 17-Jun) using IIS 5.1 and Windows XP SP1.  The error shows up at the end when viewing the output from the single command, phpinfo().  In all other pages, it shows up on the first line of output.  

The first thing I did was disable *all* extensions.  Nothing changed.  

Then I checked permissions and file attributes on the PHP directory.  Couldn't find anything out of the ordinary.  

Hope this helps!

Jim
 [2004-06-18 20:04 UTC] l_anjanesh at yahoo dot com
I've checked up at various forums and found that most replies were that the newer php5isapi.dll has the bug. I don't know really but thats what I got from most people because there is no problem at all whatsoever in linux. Also, there are people who recompile the source code in linux and somehow make it work - but not in wimdows.
 [2004-06-19 17:24 UTC] andreas at oslos dot net
Hi folks,

I have nearly the same error msg on my System:

Windows 2003 Server Enterprise
IIS 6
PHP 5.0.0 RC3

The error msg on beginning of every php page is:
"PHP has encountered an Access Violation at 017573DD"

after that the php file is normaly executed and send to browser but it never stops loading, and finaly the browser shows the "Page can not be viewed." msg.

My server is a complete new installed system with only one website on it and is thought as development platform.

The error must depend on the "php5isapi.dll".
Because by replacing the "php5isapi.dll" from RC3 with the on from the RC2 package, the error disappears!

This is also my workaround for the time waiting on a fixed dll.

Greetz from Germany!
Andreas
 [2004-06-23 22:55 UTC] spam__me at excite dot com
I was experiencing the same exact behavior described by others after upgraded to v5 RC3...

"PHP has encountered an Access Violation at 010173DD"

My platform info:
Win2k Pro, SP3
IIS 5
PHP 5.0.0 RC3 (downloaded today, 6/23/04).

Thanks to Andreas' suggestion, I was able to resolve the problem (swapping "php5isapi.dll" from RC3 with the one in the RC2 distribution).
 [2004-06-24 01:47 UTC] spam__me at excite dot com dot com
My apologies, Andreas' solution only partially addresses those in the original posters (for me at least).

Original posters claim of "There is not a single "mysql"
keyword in the phpinfo() page!" still applies to me as well (though the Access Violation error is in fact gone).

Something odd, when I view the Import/Export table for the "libmySQL.dll" file, I see most of the expected functions, except "mysql_connect"!! I am using the program "FileAlyzer" (made by the fine people of SpyBot S&D) to view the import/export table. 

This is using v5.0.0 Alpha of MySQL (maybe a MySQL problem, just wanting to see if others getting this same issue are using the same version of MySQL)
 [2004-06-24 18:44 UTC] l_anjanesh at yahoo dot com
This MySQL issue has been around sometime with PHP5. But you'll find that PHP's own db called SQLLite is enabled by default (I have no idea how this works an where is the db in the first place). They are probably concentrating more on their db.....but still it doesn't make sense though since almost all web servers are using MySQL and what are the chances of them switching to SQLLite soon ???
 [2004-06-25 13:12 UTC] seang at moosecat dot com dot au
Same problem with XP Pro IIS 5.1 PHP 5.0.0RC2 & RC3 
PHP has encountered an Access Violation at 00B473DD 
- after reading some of the comments I replaces the php5isapi.dll with the package RC1 - and that fixed it....

Hope this helps

Sean
 [2004-06-28 04:57 UTC] demis at liquidbit dot com
I have the same problem with PHP 5 RC3/iis.
A simple <?php echo "hello"; ?> will give me an access violation. But what is weird is running phpinfo at the start of my script will make it work e.g. <?php phpinfo(); echo "hello"; ?> 

Also note in the phpinfo() page under "PHP Variables" section, the key _ENV["TEMP"] had a value of "Access Violation...", once I added access to user IUSR_PCNAME it reverted back to "C:\WINDOWS\TEMP"

Since it appears that the php5isapi.dll RC2 works, can someone please provide a URL so I can download it.

Hope this helps
 [2004-06-28 10:43 UTC] l_anjanesh at yahoo dot com
Demis - Have you tried this :
http://museum.php.net/php5/
RC2 is not listed but RC1 is.
 [2004-06-29 11:36 UTC] ruta at teltec dot de
Same with 2003 webserver edition
 [2004-07-07 08:04 UTC] sebben at waw dot com dot br
i not inglesh, i portugues
http://br.php.net/get/php-5.0.0RC2-Win32.zip/from/this/mirror

is the orc2
 [2004-07-07 14:19 UTC] php_newbie at yahoo dot com
The error above shows when using myphpadmin 2.5.5-pl1 on IIS 5.1 with PHP 5 RC3 and MySQL 4.0.20c

Most of my PHP/MySQL scripts works fine except for this one, I want to add the myphpadmin so i can do database manipulations on hand but sadly this version won't. Any help would be gratefullt appreciated.
 [2004-07-08 01:55 UTC] bojo at gvea dot com
After building a Windows 2003 server with IIS6 and PHP 5.0 RC3, I have the same Access Violation error.  I also tried replacing the php5isapi.dll with the RC2 version, no luck.  I then fully rolled back to PHP 5.0 RC2, same problem.

In comparison, my Redhat environment with Apache 2 and PHP 5.0 RC3 was also crashing erratically, although I was unable to track it down to an Access Violation error.  I believe that this problem is more than likely related.

I haven't been able to produce this error with a sane amount of test code, but will add more comments as I try to narrow things down.
 [2004-07-14 23:34 UTC] alantan at po dot tagnetwork dot net
you must manually enable mysql extension modules (mysqli if you want to use Mysql 5.0 like i did) if you want to use it in php.ini... to answer that

also the ISAPI module I experience the same problem with both RC3 AND the FINAL release.
 [2004-07-15 18:14 UTC] edink@php.net
Could you try php5ts.dll from http://emini.dk/php5ts-zend-mm.zip
 [2004-07-16 09:06 UTC] wallig at web dot de
i have the same bug. i am developing under win xp pro sp1 iis5.1. i worked with php4.3.7 and mysql 4.0.20b. then i moved to php5 final and mysql 4.1.3b. it took me a hole day to get it run. i found round about 6 different ways to install it, but it didnt worked properly. and i needed 2 more hours to get mysql work, because "php_mysql.dll was not found". i had old dlls in windows/system32. finally it worked but my scripts didnt work anymore. especially the session handling. and now i just get "PHP has encountered an Access Violation at 015273CD". i found this page and wanted to vote on this bug and all what i get is:
query INSERT INTO bugdb_votes (bug,ip,score,reproduced,tried,sameos,samever) VALUES(28799,,2,1,1,1,1); failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '2,1,1,1,1)' at line 1
what the hell are the doing. are the now working for microsoft?

greetings from germany

markus
 [2004-07-16 09:56 UTC] l_anjanesh at yahoo dot com
Voting not working ? This is new. I voted a few days ago though I posted this post long time back. My vote was counted. I thought I can vote again to see this error but can't vote now. Guess its a one time vote ?
 [2004-07-16 18:14 UTC] frederichenry at hotmail dot com
edink,

Tried the php5ts.dll file provided in the link, no success.

This problem has existed since the 4.3.7 release (I have not tried 4.3.8 yet).

WinServer 2003, IIS6, PHP5 (Final and RC's).  phpinfo(); returns fine, but anything else returns an access violation.

Here's an example:
<?
echo "hello!";
?>

Result:
PHP has encountered an Access Violation at 017573CDhello!
 [2004-07-16 18:24 UTC] l_anjanesh at yahoo dot com
Im using php 4.3.7 and not encountered any such problem - all is working fine. I find the problem only with php5.
 [2004-07-16 19:56 UTC] frederichenry at hotmail dot com
Nevermind.  The .dll provided by edink did fix the problem, I just forgot to update the right version of it. ;)

For anyone still experiencing the, if you install PHP like I do, make sure that the php5ts.dll file is updated in your %SYSTEMROOT% folder, and your php folder (if you leave it there).  I setup <drive>:\php as a PATH value, so it may be different for me.

Thanks edink.
 [2004-07-19 22:45 UTC] philmee95 at dumb-shirts dot com
The new php5ts.dll fixed the access violation on non-mysql pages. Now I have a new access violation that is intermittant: meaning doens't work (query hits mysql using pear DB, access violation, and then nothing) and next load it works. There is a different access violation code now, as occured as i played with .ini and include paths and extension dirs thinking it was file access related.

PHP5 final, MySQL 4.1.1-alpha-nt, winXP version 2002 sp1

(php-5.0.0-Win32.zip and php5ts-zend-mm.zip)
 [2004-07-21 18:03 UTC] alantan at po dot tagnetwork dot net
I am happy to note that the dll download recommended by edink solved my problem - I am using MySQL 5.0.0a for Windows, PHP 5.0 final, IIS 6.0, all on Windows Server 2003 Standard.

I'll continue to test this to see if I get any more of those access violations errors and note them here if it shows up on my other servers.
 [2004-07-21 19:30 UTC] alantan at po dot tagnetwork dot net
after further testing though the library is still a bit unstable, for every few pages I still get the Access Violation error. after refreshing it, the page loads fine.
 [2004-07-21 19:34 UTC] alantan at po dot tagnetwork dot net
after further testing though the library is still a bit unstable, once in a while I still get the Access Violation error. after refreshing it, the page loads fine.
 [2004-07-22 19:23 UTC] greg at channelvision dot com
Running windows 2000 iis 5 php 5.  I was having the same problem and the dll provided by edlink solved it.  Thanks.
 [2004-07-24 17:54 UTC] ragerino at gmx dot net
same thing here

windows 2003 server enterprise edition.
php5 extracted to c:\php5 directory

copied the php5ts.dll and libmysql.dll to c:\windows\system32

copied modified ini file to c:\window (just edited extension path to c:\php5\ext and uncommented the php_mysql.dll line)

and followed this instruction:
http://www.iis-resources.com/modules/news/article.php?storyid=96

result -> phpinfo(); works other phpsites give me following error "PHP has encountered an Access Violation at 017B73CD"

does anyone recommend to switch to previous version of php ???
 [2004-07-24 18:15 UTC] ragerino at gmx dot net
adding information to bugreport (top of this report).

when i rename the php.ini to php.ini_ so that php cannot find it, the access violation is on the bottom of the output. when i rename it again to php.ini the access violation is at the beginning of the page. maybe it has something to do with the php.ini-file handling.
the only things i changed is the ext-dir and the mysql extension thing.

hope this helps
 [2004-07-24 18:26 UTC] ragerino at gmx dot net
the dll provided by edlink did also not work-same problem like before.
 [2004-07-24 18:36 UTC] ragerino at gmx dot net
also experienced some things they have to do if php.ini is present or not:

without php.ini in c:\window-dir:
things using odbc_... working

with php.ini in c:\window:
things using odbc_... -> HTTP 500 error
 [2004-07-24 20:58 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-08-06 09:46 UTC] Captain dot Loc at laposte dot net
Hello,

Sorry for my bad english in first.

I had the same problem.
My reply : I had download a file .reg to configure my IIS server for ISAPI.
There is like this:
[HKEY_LOCAL_MACHINE\SYSTEME\CurrentControlSet\Services\w3svc\parameters\Script Map]
".php"="c:\winnt\system32\php5isapi.dll"

Becareful, the file php5isapi.dll and php5ts.dll must be in the same repertory.

Good By!!
Cap
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Aug 13 07:01:29 2024 UTC