I am running PHP4, MS SQL 7 on IIS4. A lot of times I ran into an Access Violation error message and I had to restart IIS4. Could someone tell me what this error is about and how I can fix it?

    I get that on NT from time to time as well, noy sure why, but I just have to reboot. quick fix: use unix

      3 months later

      Hi..

      I am using PHP4.04pl1 + win2k advanced server + mssql2k using odbc to connect to database...i have the same problem as you do...

      but on top of that...occasionally there is another wierd error: it suddenly forced the browser to download the php file! i tried to see what happened by viewing the page with netscape...and the "save file" dialog box said that the file type is something i've never seen becoz the name of the file type is some wierd character and obviously not any readable common language in the world.

      i saved the page and see what's inside...i've got this:
      <br>
      <b>Warning</b>: Failed opening '0‚Â' for inclusion (include_path='') in <b>Unknown</b> on line <b>0</b><br>

      can anyone tell me what happened? i am 100% sure the page has no error because it was working right before i encounter this problem...usually the scenario is like this: page doing fine for some time => access violation => force download

        14 days later

        I never had problem with this error untill i change from php 4.0.2 to 4.0.4 , on WIN2000 IIS

          After I have reconfigured to use the CGI version, this problem went away.

          Are you all run on ISAPI version?

            i tried version 4.0.2 and version 4.0.4 with and without isapi and exe on NT
            5 IIS
            but i still got the problem, i have reinstalled php many times 🙁 and now
            i'm gonna reinstall IIS.
            but it is a strange error cause i'm working with php for almost 2 years and
            with php 4 for a couple of months and till now (to day) i had never seen
            that error. And i got the error without changing any thing to my scripts or
            settings

            i hope it will be solved when i have reinstalled IIS

            , thanx for your reaction

            greatz huib bakker

              I have been using PHP on IIS4 since its 4.0.1 release, and have found that:

              (1) When running with ISAPI, "Access Violation" occurs whenever we have a nested loop that contains at least one associative array.
              (2) By changing the associative array to an indexed array, we have reduced the occurance of the error.
              (3) After we have switched to CGI, this problem went away completely.

              It seems to me that it has something to do with the memory management of PHP. Hope some else can give us some insigit about it.

                4 months later

                Dear All,

                We are facing a very Strange Problem.
                First let me tell you guys about our System.
                We are on Windows NT and The Web Server is IIS 4.0 and PHP 4.0.

                The Problem faced by us is:

                1)PHP access violation error at 07732D80.

                Sometimes it works without doing anything and suddenly error crops up.

                Thanks in Advance

                My mail ID is :d.sananda@anpl-india.net

                Denrich.

                  I had the same problem.
                  It's the isapi dll of php who isn't working correctly. There ain't any proper solution to this, the only solution for this problem is running php in exe mode, what is taking more processor power 🙁
                  I hope there will be a stable dll by the release of the next php version.

                  greatz, huib

                    2 months later

                    Hi everyone
                    I am using php 4.0.6 isapi.dll version on Windows NT alongwith mysql. My problem is that it sometimes gives the error 'PHP HAS ENCOUNTERED AN ACCESS VIOLATION'. I tried on Win2K but it still sometimes gives same problem.
                    I dont want to use the isapi.exe for php cause it is slow neither can I shift to Linux.
                    Is the use of indexed array or associative array causing these problems?

                    Also I am not using any triggers for mysql(So that might also not be a problem for giving the php error).

                    Can we handle that error (In the code itself) or can anyone tell me why exactly this error comes?
                    In this forum people have cited various reasons as to why this error occurs but I havent found any concrete reason for this.

                    This really makes me question the consistency of PHP as a whole, especially on NT.

                    Plz help...
                    Thanking in advance.
                      5 months later

                      Has anyone tried this with the new php 4.1? I'm curious if it clears up this problem as the release notes say:
                      "Revolutionary performance and stability improvements under Windows. The ultithreaded server modules under Windows (ISAPI, Apache, etc.) perform as much as 30 times faster under load! "

                        3 months later

                        I get this error now and I have a newly installed W2K server running MySQL and PHP 4.1.2

                        What can one do? Don't want to run the CGI version and unfortunately I cannot install Linux. 🙁

                        /Andreas

                          I tried to install Apache 1.3.24 and run it instead of IIS and now the problem seems to have disappeared at least I've not seen it yet! 🙂

                            Write a Reply...