By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,047 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,047 IT Pros & Developers. It's quick & easy.

PHP 4.3.4 aborts under Windows XP

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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.
http://www.macromedia.com/devnet/mx/...s/php_iis.html

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" <zl*********@yahoo.fr> wrote in message
news:d9*************************@posting.google.co m...
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


Jul 17 '05 #2

P: n/a
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
Jul 17 '05 #3

P: n/a
In article <d9**************************@posting.google.com >,
zl*********@yahoo.fr (Claude ANIMO) wrote:
How did you discover I was a french native ?


I suppose this gave it away:

From: zl*********@yahoo.fr
^^

JP

--
Sorry, <de*****@cauce.org> is een "spam trap".
E-mail adres is <jpk"at"akamail.com>, waarbij "at" = @.
Jul 17 '05 #4

P: n/a

"Jan Pieter Kunst" <de*****@cauce.org> wrote in message
news:de***************************@news1.news.xs4a ll.nl...
In article <d9**************************@posting.google.com >,
zl*********@yahoo.fr (Claude ANIMO) wrote:
How did you discover I was a french native ?


I suppose this gave it away:

From: zl*********@yahoo.fr
^^


Logic, but that's not how I know it. I have read your post first in
fr.comp.lang.php 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

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.