PHP has encountered an access violation...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin

    PHP has encountered an access violation...

    I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
    5.2.5. I have not used or changed this site for several months - the
    last time I worked with it, all was well.

    When I tried it just now, I am getting the subject error message
    (specifically: PHP has encountered an access violation at 00F76E21).

    The error is NOT occurring on every page request (but it is on most of
    them) and, when I get the error, simply pressing <F5to refresh the
    page results in the page being served successfully.

    Some googling around indicates that "permission s" are not set
    correctly. But, if that was actually the case, a <refreshwouldn' t
    work either would it? This seems to be a sporadic issue.

    Any ideas as to what's going on here?
  • Martin

    #2
    Re: PHP has encountered an access violation...

    On Thu, 04 Sep 2008 07:52:22 -0700, Martin <ironwoodcanyon @gmail.com>
    wrote:
    >I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
    >5.2.5. I have not used or changed this site for several months - the
    >last time I worked with it, all was well.
    >
    >When I tried it just now, I am getting the subject error message
    >(specificall y: PHP has encountered an access violation at 00F76E21).
    >
    >The error is NOT occurring on every page request (but it is on most of
    >them) and, when I get the error, simply pressing <F5to refresh the
    >page results in the page being served successfully.
    >
    >Some googling around indicates that "permission s" are not set
    >correctly. But, if that was actually the case, a <refreshwouldn' t
    >work either would it? This seems to be a sporadic issue.
    >
    >Any ideas as to what's going on here?
    Well, FWIW, re-booting the computer ALMOST fixed it. Now the error
    seems to be encountered only on a couple of different pages - again,
    it's at random - sometimes it happens and sometimes it doesn't. :(

    Comment

    • Dale

      #3
      Re: PHP has encountered an access violation...


      "Martin" <ironwoodcanyon @gmail.comwrote in message
      news:83vvb45p05 r64lepnie529eud vck8s5ekj@4ax.c om...
      On Thu, 04 Sep 2008 07:52:22 -0700, Martin <ironwoodcanyon @gmail.com>
      wrote:
      >
      >>I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
      >>5.2.5. I have not used or changed this site for several months - the
      >>last time I worked with it, all was well.
      >>
      >>When I tried it just now, I am getting the subject error message
      >>(specifically : PHP has encountered an access violation at 00F76E21).
      >>
      >>The error is NOT occurring on every page request (but it is on most of
      >>them) and, when I get the error, simply pressing <F5to refresh the
      >>page results in the page being served successfully.
      >>
      >>Some googling around indicates that "permission s" are not set
      >>correctly. But, if that was actually the case, a <refreshwouldn' t
      >>work either would it? This seems to be a sporadic issue.
      >>
      >>Any ideas as to what's going on here?
      >
      Well, FWIW, re-booting the computer ALMOST fixed it. Now the error
      seems to be encountered only on a couple of different pages - again,
      it's at random - sometimes it happens and sometimes it doesn't. :(
      nothing is random...and 'almost' is not 'fixed'. without seeing your code,
      it's hard to tell what you may be doing.


      Comment

      • Ivan Marsh

        #4
        Re: PHP has encountered an access violation...

        On Thu, 04 Sep 2008 07:52:22 -0700, Martin wrote:
        I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
        5.2.5. I have not used or changed this site for several months - the
        last time I worked with it, all was well.
        >
        When I tried it just now, I am getting the subject error message
        (specifically: PHP has encountered an access violation at 00F76E21).
        >
        The error is NOT occurring on every page request (but it is on most of
        them) and, when I get the error, simply pressing <F5to refresh the
        page results in the page being served successfully.
        >
        Some googling around indicates that "permission s" are not set correctly.
        But, if that was actually the case, a <refreshwouldn' t work either
        would it? This seems to be a sporadic issue.
        >
        Any ideas as to what's going on here?
        What kind of load is it under? I don't know if it has anything to do with
        your issue but IIS running under XP only allows 10 connections.

        --
        I told you this was going to happen.

        Comment

        • Martin

          #5
          Re: PHP has encountered an access violation...

          On Thu, 4 Sep 2008 10:52:23 -0500, "Dale" <the.one@exampl e.comwrote:
          >
          >"Martin" <ironwoodcanyon @gmail.comwrote in message
          >news:83vvb45p0 5r64lepnie529eu dvck8s5ekj@4ax. com...
          >On Thu, 04 Sep 2008 07:52:22 -0700, Martin <ironwoodcanyon @gmail.com>
          >wrote:
          >>
          >>>I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
          >>>5.2.5. I have not used or changed this site for several months - the
          >>>last time I worked with it, all was well.
          >>>
          >>>When I tried it just now, I am getting the subject error message
          >>>(specificall y: PHP has encountered an access violation at 00F76E21).
          >>>
          >>>The error is NOT occurring on every page request (but it is on most of
          >>>them) and, when I get the error, simply pressing <F5to refresh the
          >>>page results in the page being served successfully.
          >>>
          >>>Some googling around indicates that "permission s" are not set
          >>>correctly. But, if that was actually the case, a <refreshwouldn' t
          >>>work either would it? This seems to be a sporadic issue.
          >>>
          >>>Any ideas as to what's going on here?
          >>
          >Well, FWIW, re-booting the computer ALMOST fixed it. Now the error
          >seems to be encountered only on a couple of different pages - again,
          >it's at random - sometimes it happens and sometimes it doesn't. :(
          >
          >nothing is random...and 'almost' is not 'fixed'. without seeing your code,
          >it's hard to tell what you may be doing.
          >
          By "random" I mean that I get the error one time when I view page "X"
          but a subsequent viewing of the same page encounters no error. I might
          view the page repeatedly without error and then, on the next view, the
          error will appear.


          Comment

          • Martin

            #6
            Re: PHP has encountered an access violation...

            On Thu, 04 Sep 2008 10:55:57 -0500, Ivan Marsh <ivanmarsh@yaho o.com>
            wrote:
            >On Thu, 04 Sep 2008 07:52:22 -0700, Martin wrote:
            >
            >I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
            >5.2.5. I have not used or changed this site for several months - the
            >last time I worked with it, all was well.
            >>
            >When I tried it just now, I am getting the subject error message
            >(specificall y: PHP has encountered an access violation at 00F76E21).
            >>
            >The error is NOT occurring on every page request (but it is on most of
            >them) and, when I get the error, simply pressing <F5to refresh the
            >page results in the page being served successfully.
            >>
            >Some googling around indicates that "permission s" are not set correctly.
            >But, if that was actually the case, a <refreshwouldn' t work either
            >would it? This seems to be a sporadic issue.
            >>
            >Any ideas as to what's going on here?
            >
            >What kind of load is it under? I don't know if it has anything to do with
            >your issue but IIS running under XP only allows 10 connections.
            No load whatsoever. Like I said, this is on my LAN (in my office where
            I develop stuff) and I'm the only one using it.

            Comment

            • Ivan Marsh

              #7
              Re: PHP has encountered an access violation...

              On Thu, 04 Sep 2008 09:07:27 -0700, Martin wrote:
              On Thu, 04 Sep 2008 10:55:57 -0500, Ivan Marsh <ivanmarsh@yaho o.com>
              wrote:
              >
              >>On Thu, 04 Sep 2008 07:52:22 -0700, Martin wrote:
              >>
              >>I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
              >>5.2.5. I have not used or changed this site for several months - the
              >>last time I worked with it, all was well.
              >>>
              >>When I tried it just now, I am getting the subject error message
              >>(specifically : PHP has encountered an access violation at 00F76E21).
              >>>
              >>The error is NOT occurring on every page request (but it is on most of
              >>them) and, when I get the error, simply pressing <F5to refresh the
              >>page results in the page being served successfully.
              >>>
              >>Some googling around indicates that "permission s" are not set
              >>correctly. But, if that was actually the case, a <refreshwouldn' t
              >>work either would it? This seems to be a sporadic issue.
              >>>
              >>Any ideas as to what's going on here?
              >>
              >>What kind of load is it under? I don't know if it has anything to do
              >>with your issue but IIS running under XP only allows 10 connections.
              >
              No load whatsoever. Like I said, this is on my LAN (in my office where I
              develop stuff) and I'm the only one using it.
              Depending on how the page is designed and what it's doing a single page
              load could create more than 10 connections.

              Monitoring Connections (IIS 6.0)


              I'm sure the instructions for IIS 5 are similar.

              --
              I told you this was going to happen.

              Comment

              • Erwin Moller

                #8
                Re: PHP has encountered an access violation...


                Martin schreef:
                I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
                5.2.5. I have not used or changed this site for several months - the
                last time I worked with it, all was well.
                >
                When I tried it just now, I am getting the subject error message
                (specifically: PHP has encountered an access violation at 00F76E21).
                >
                The error is NOT occurring on every page request (but it is on most of
                them) and, when I get the error, simply pressing <F5to refresh the
                page results in the page being served successfully.
                >
                Some googling around indicates that "permission s" are not set
                correctly. But, if that was actually the case, a <refreshwouldn' t
                work either would it? This seems to be a sporadic issue.
                >
                Any ideas as to what's going on here?
                Hi,

                First, to find the reason for an access violation, you must use
                debuggertools for IIS.
                You can find better help in this newsgroup:
                microsoft.publi c.inetserver.ii s (also with finding the right tools to
                create a bugreport.)
                I heard PHP5.1.somethin g had some issues when trying to free the same
                amount of memory twice. (Not sure if that is related)

                And I have a, possibly lame, suggestion: Switch to Apache (1.3 or 2).
                Most techies consider IIS an inferior webserver.

                Regards,
                Erwin Moller

                --
                =============== =============
                Erwin Moller
                Now dropping all postings from googlegroups.
                Why? http://improve-usenet.org/
                =============== =============

                Comment

                • Erwin Moller

                  #9
                  Re: PHP has encountered an access violation...


                  Ivan Marsh schreef:
                  On Thu, 04 Sep 2008 09:07:27 -0700, Martin wrote:
                  >
                  >On Thu, 04 Sep 2008 10:55:57 -0500, Ivan Marsh <ivanmarsh@yaho o.com>
                  >wrote:
                  >>
                  >>On Thu, 04 Sep 2008 07:52:22 -0700, Martin wrote:
                  >>>
                  >>>I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
                  >>>5.2.5. I have not used or changed this site for several months - the
                  >>>last time I worked with it, all was well.
                  >>>>
                  >>>When I tried it just now, I am getting the subject error message
                  >>>(specificall y: PHP has encountered an access violation at 00F76E21).
                  >>>>
                  >>>The error is NOT occurring on every page request (but it is on most of
                  >>>them) and, when I get the error, simply pressing <F5to refresh the
                  >>>page results in the page being served successfully.
                  >>>>
                  >>>Some googling around indicates that "permission s" are not set
                  >>>correctly. But, if that was actually the case, a <refreshwouldn' t
                  >>>work either would it? This seems to be a sporadic issue.
                  >>>>
                  >>>Any ideas as to what's going on here?
                  >>What kind of load is it under? I don't know if it has anything to do
                  >>with your issue but IIS running under XP only allows 10 connections.
                  >No load whatsoever. Like I said, this is on my LAN (in my office where I
                  >develop stuff) and I'm the only one using it.
                  >
                  Depending on how the page is designed and what it's doing a single page
                  load could create more than 10 connections.
                  Well, would that explain why it doesn't happen on the same page when it
                  is reloaded?
                  If the page does the same thing, why would 1 invocation create an error,
                  and the second not if he is the only one using that server?

                  I bet something else is wrong.
                  Best thing to do is switch webserver or diagnose the problem with some
                  tools. (see my other response).

                  Regards,
                  Erwin Moller
                  >
                  Monitoring Connections (IIS 6.0)

                  >
                  I'm sure the instructions for IIS 5 are similar.
                  >

                  --
                  =============== =============
                  Erwin Moller
                  Now dropping all postings from googlegroups.
                  Why? http://improve-usenet.org/
                  =============== =============

                  Comment

                  • Sjoerd

                    #10
                    Re: PHP has encountered an access violation...

                    Martin wrote:
                    (specifically: PHP has encountered an access violation at 00F76E21).
                    Off course there are many kinds of access violations, but this seems to
                    me like PHP is trying to read from a memory address it does not has
                    access to. This is most likely a bug in PHP (or some other software) or
                    broken hardware. Try testing your memory (maybe with memtest86) and up-/
                    downgrading your PHP.

                    Comment

                    • Jerry Stuckle

                      #11
                      Re: PHP has encountered an access violation...

                      Martin wrote:
                      I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
                      5.2.5. I have not used or changed this site for several months - the
                      last time I worked with it, all was well.
                      >
                      When I tried it just now, I am getting the subject error message
                      (specifically: PHP has encountered an access violation at 00F76E21).
                      >
                      The error is NOT occurring on every page request (but it is on most of
                      them) and, when I get the error, simply pressing <F5to refresh the
                      page results in the page being served successfully.
                      >
                      Some googling around indicates that "permission s" are not set
                      correctly. But, if that was actually the case, a <refreshwouldn' t
                      work either would it? This seems to be a sporadic issue.
                      >
                      Any ideas as to what's going on here?
                      >
                      Martin,

                      There are several bug reports at bugs.php.net similar to what you are
                      reporting. But not knowing what your code is doing, I have no idea what
                      might be related.

                      You could look through them and see what you can find. Upgrading to
                      5.2.6 may also fix this bug.

                      And if you don't find anything, I would recommend you put together a
                      small test case showing the problem and report it as a bug.

                      --
                      =============== ===
                      Remove the "x" from my email address
                      Jerry Stuckle
                      JDS Computer Training Corp.
                      jstucklex@attgl obal.net
                      =============== ===

                      Comment

                      • Ivan Marsh

                        #12
                        Re: PHP has encountered an access violation...

                        On Thu, 04 Sep 2008 14:50:08 -0400, Jerry Stuckle wrote:
                        Martin wrote:
                        >I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
                        >5.2.5. I have not used or changed this site for several months - the
                        >last time I worked with it, all was well.
                        >>
                        >When I tried it just now, I am getting the subject error message
                        >(specificall y: PHP has encountered an access violation at 00F76E21).
                        >>
                        >The error is NOT occurring on every page request (but it is on most of
                        >them) and, when I get the error, simply pressing <F5to refresh the
                        >page results in the page being served successfully.
                        >>
                        >Some googling around indicates that "permission s" are not set
                        >correctly. But, if that was actually the case, a <refreshwouldn' t
                        >work either would it? This seems to be a sporadic issue.
                        >>
                        >Any ideas as to what's going on here?
                        >>
                        >>
                        Martin,
                        >
                        There are several bug reports at bugs.php.net similar to what you are
                        reporting. But not knowing what your code is doing, I have no idea what
                        might be related.
                        >
                        You could look through them and see what you can find. Upgrading to
                        5.2.6 may also fix this bug.
                        >
                        And if you don't find anything, I would recommend you put together a
                        small test case showing the problem and report it as a bug.
                        Most of the bug reports I've seen on this suggest it's an issue with
                        running PHP and an ISAPI filter.

                        Perhaps you could try setting it up as CGI. I vaguely remember running
                        into a similar issue the one time I attempted to run PHP under Windows.
                        Though I believe I solved (side stepped) the issue by running Apache
                        instead of IIS, which my not be a solution for you.


                        --
                        I told you this was going to happen.

                        Comment

                        • Richard

                          #13
                          Re: PHP has encountered an access violation...


                          "Erwin Moller"
                          <Since_humans_r ead_this_I_am_s pammed_too_much @spamyourself.c omwrote
                          in message news:48c011f2$0 $184$e4fe514c@n ews.xs4all.nl.. .
                          >
                          Martin schreef:
                          >I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
                          >5.2.5. I have not used or changed this site for several months -
                          >the
                          >last time I worked with it, all was well.
                          >>
                          >When I tried it just now, I am getting the subject error message
                          >(specificall y: PHP has encountered an access violation at
                          >00F76E21). The error is NOT occurring on every page request (but it
                          >is on most of
                          >them) and, when I get the error, simply pressing <F5to refresh
                          >the
                          >page results in the page being served successfully.
                          >>
                          >Some googling around indicates that "permission s" are not set
                          >correctly. But, if that was actually the case, a <refreshwouldn' t
                          >work either would it? This seems to be a sporadic issue.
                          >>
                          >Any ideas as to what's going on here?
                          >
                          Hi,
                          >
                          First, to find the reason for an access violation, you must use
                          debuggertools for IIS.
                          You can find better help in this newsgroup:
                          microsoft.publi c.inetserver.ii s (also with finding the right tools
                          to create a bugreport.)
                          I heard PHP5.1.somethin g had some issues when trying to free the
                          same amount of memory twice. (Not sure if that is related)
                          >
                          And I have a, possibly lame, suggestion: Switch to Apache (1.3 or
                          2).
                          Most techies consider IIS an inferior webserver.
                          >
                          Regards,
                          Erwin Moller
                          >
                          FWIW:
                          I have been struggling to solve a similar problem under Apache. :(

                          Still dont know the exact cause, but somehow a mySQL dll was the wrong
                          version.
                          Replcing it with another 'fixed' it.
                          How the wrong dll was referenced I still dont know.

                          Richard


                          Comment

                          • AqD

                            #14
                            Re: PHP has encountered an access violation...

                            Martin wrote:
                            I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
                            5.2.5. I have not used or changed this site for several months - the
                            last time I worked with it, all was well.
                            >
                            When I tried it just now, I am getting the subject error message
                            (specifically: PHP has encountered an access violation at 00F76E21).
                            >
                            The error is NOT occurring on every page request (but it is on most of
                            them) and, when I get the error, simply pressing <F5to refresh the
                            page results in the page being served successfully.
                            >
                            Some googling around indicates that "permission s" are not set
                            correctly. But, if that was actually the case, a <refreshwouldn' t
                            work either would it? This seems to be a sporadic issue.
                            >
                            Any ideas as to what's going on here?
                            Some kind of internal bug in PHP. The access violation error tells
                            NOTHING and you don't need to waste time on it.

                            Try different PHP versions or use apache to host PHP scripts. Apache
                            is less problemic with PHP in my experience.

                            Comment

                            • Dale

                              #15
                              Re: PHP has encountered an access violation...


                              "AqD" <aquila.deus@gm ail.comwrote in message
                              news:749059af-db00-426b-a549-bc1c5700d1b9@p1 0g2000prf.googl egroups.com...
                              Martin wrote:
                              >I have an intranet-only site running in Windows XPPro, IIS 5.1, PHP
                              >5.2.5. I have not used or changed this site for several months - the
                              >last time I worked with it, all was well.
                              >>
                              >When I tried it just now, I am getting the subject error message
                              >(specificall y: PHP has encountered an access violation at 00F76E21).
                              >>
                              >The error is NOT occurring on every page request (but it is on most of
                              >them) and, when I get the error, simply pressing <F5to refresh the
                              >page results in the page being served successfully.
                              >>
                              >Some googling around indicates that "permission s" are not set
                              >correctly. But, if that was actually the case, a <refreshwouldn' t
                              >work either would it? This seems to be a sporadic issue.
                              >>
                              >Any ideas as to what's going on here?
                              >
                              Some kind of internal bug in PHP.
                              and exactly HOW would you know that?!
                              The access violation error tells
                              NOTHING and you don't need to waste time on it.
                              hmmm...it tells you the application is trying to do something that it is not
                              allowed to do. your comments seem to be the only thing wasting anyone's
                              time.
                              Try different PHP versions or use apache to host PHP scripts. Apache
                              is less problemic with PHP in my experience.
                              well, well, well. seems like you don't really think it is 'some kind of
                              internal bug in PHP' after all! now you're saying it's IIS, or any other
                              webserver but apache.

                              if you don't have enough information to go on, don't assume so wonderfully
                              and precisely what the specific problem is or what is going to solve it!


                              Comment

                              Working...