PHP 4.3.4 aborts under Windows XP

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

    PHP 4.3.4 aborts under Windows XP

    Hello,

    I am in the process of writing an XML analyzer.
    In order to build the tree structure I intensivly rely on recursivity.
    The depths are not excessive. With no more than 10 recursive calls
    emboities.
    But it has as many calls as of XML nodes.
    Each level of recursivity waiting for termination contains a character
    string of a few tens of characters.
    My larger files do not exceed 100 KB. In an unforeseeable way, on
    certain analyzed files, I get the message 'CGI Error' without any
    other indication.
    It is enough that I remove an even empty node as < a></a > so that my
    programs give the anticipated result.
    If I replace this node by a chain of several hundreds of characters,
    all well also occurs.
    Finally if I execute my programs within my provider environment
    (free.fr, same PHP level, linux machine) with the same set of files,
    in a situation even more constrained in memory than on my local
    computer, I do not have strictly any problems.
    Finally my questions:
    .. how Php does manage its function calls, which is the incompressible
    memory size consumed with each recursive call?
    .. Why does I obtain no error message on behalf of PHP (stack overfow
    or other...)
    .. how can I play with size parameters (stack, memory ...). I set
    memory_limit to 50M without any positive results. With 5M at my
    provider it goes perfectly.
    .. how can I trace this problem. I am certain that all my recursions
    finish correctly. I would like to avoid to recompile PHP under Windows
    with debug mode set.
    .. Is PHP under Windows XP known as being fragile?


    I am in a great trouble, deadlines to be respected and this @!!¤#!!
    system which aborts.

    Thank you to have read me until the end.

    Best regards,

    Claude Animo

    Claude dot Animo @ free dot fr
  • Savut

    #2
    Re: PHP 4.3.4 aborts under Windows XP

    Le probleme ca vient de ta configuration IIS et PHP qui est en mode CGI,
    alors que tu devrais l'installer en ISAPI pour que ca roule beaucoup plus
    rapidement que CGI. J'ai pense ecrire comment l'installer en ISAPI, mais ce
    lien explique pas mal le necessaire.


    Si t'a de quoi tu comprend pas, gene toi pas. Et puis l'article suggere que
    en mode ISAPI, tu peux apercevoir des instabilite, mais cela n'arrive que si
    ton system est deja comme des spaguetti. Sinon, de ma part, je n'ai jamais
    eu des problemes chez mes clients.

    Savut

    "Claude ANIMO" <zlm_zlm2004@ya hoo.fr> wrote in message
    news:d9ec07a1.0 404130523.1ece0 11@posting.goog le.com...[color=blue]
    > Hello,
    >
    > I am in the process of writing an XML analyzer.
    > In order to build the tree structure I intensivly rely on recursivity.
    > The depths are not excessive. With no more than 10 recursive calls
    > emboities.
    > But it has as many calls as of XML nodes.
    > Each level of recursivity waiting for termination contains a character
    > string of a few tens of characters.
    > My larger files do not exceed 100 KB. In an unforeseeable way, on
    > certain analyzed files, I get the message 'CGI Error' without any
    > other indication.
    > It is enough that I remove an even empty node as < a></a > so that my
    > programs give the anticipated result.
    > If I replace this node by a chain of several hundreds of characters,
    > all well also occurs.
    > Finally if I execute my programs within my provider environment
    > (free.fr, same PHP level, linux machine) with the same set of files,
    > in a situation even more constrained in memory than on my local
    > computer, I do not have strictly any problems.
    > Finally my questions:
    > . how Php does manage its function calls, which is the incompressible
    > memory size consumed with each recursive call?
    > . Why does I obtain no error message on behalf of PHP (stack overfow
    > or other...)
    > . how can I play with size parameters (stack, memory ...). I set
    > memory_limit to 50M without any positive results. With 5M at my
    > provider it goes perfectly.
    > . how can I trace this problem. I am certain that all my recursions
    > finish correctly. I would like to avoid to recompile PHP under Windows
    > with debug mode set.
    > . Is PHP under Windows XP known as being fragile?
    >
    >
    > I am in a great trouble, deadlines to be respected and this @!!¤#!!
    > system which aborts.
    >
    > Thank you to have read me until the end.
    >
    > Best regards,
    >
    > Claude Animo
    >
    > Claude dot Animo @ free dot fr[/color]

    Comment

    • Claude ANIMO

      #3
      Re: PHP 4.3.4 aborts under Windows XP

      Savut, thank you for your answer.
      I'm going to install Php in ISAPI mode.
      I'm just a bit disapointed. I though my english was going better.
      How did you discover I was a french native ?
      Best regards,
      Claude Animo

      Comment

      • Jan Pieter Kunst

        #4
        Re: PHP 4.3.4 aborts under Windows XP

        In article <d9ec07a1.04041 60802.6618756e@ posting.google. com>,
        zlm_zlm2004@yah oo.fr (Claude ANIMO) wrote:
        [color=blue]
        > How did you discover I was a french native ?[/color]

        I suppose this gave it away:

        From: zlm_zlm2004@yah oo.fr
        ^^

        JP

        --
        Sorry, <devnull@cauce. org> is een "spam trap".
        E-mail adres is <jpk"at"akamail .com>, waarbij "at" = @.

        Comment

        • Savut

          #5
          Re: PHP 4.3.4 aborts under Windows XP


          "Jan Pieter Kunst" <devnull@cauce. org> wrote in message
          news:devnull-D8CC06.18264916 042004@news1.ne ws.xs4all.nl...[color=blue]
          > In article <d9ec07a1.04041 60802.6618756e@ posting.google. com>,
          > zlm_zlm2004@yah oo.fr (Claude ANIMO) wrote:
          >[color=green]
          >> How did you discover I was a french native ?[/color]
          >
          > I suppose this gave it away:
          >
          > From: zlm_zlm2004@yah oo.fr
          > ^^[/color]

          Logic, but that's not how I know it. I have read your post first in
          fr.comp.lang.ph p which was in french but everytime I try to answer, the damn
          moderator refused my answer for x reason. I was about to forgot it, but I
          just discovered your post again in english here. So there.

          Savut

          Comment

          Working...