473,322 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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
Jul 17 '05 #1
4 1793
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
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
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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Graham | last post by:
Hi I have a page that uploads an xml file and reads it into a SQL database. The page is transactional and aborts if there are any anomalies in the xml. My problem is that the if I repeat an...
2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
0
by: Bob Jones | last post by:
Visual Studio .NET aborts after displaying "Help is updating to reflect your recent changes. This may take several minutes." generates Event Viewer Application error: Faulting application...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
0
by: Rajat Katyal | last post by:
----- Original Message ----- From: Rajat Katyal To: pgsql-jdbc@postgresql.org Sent: Saturday, January 31, 2004 10:15 AM Subject: Trigger function aborts the transaction on exception Hi:...
1
by: Rajat Katyal | last post by:
Hi: I came to know from the postgresql documentation that PostgreSQL does not have a very smart exception handling model. I wonder whether anyone can helpme or suggest some alternate solution for...
0
by: johnsburg | last post by:
Windows 2003 Server ..Net Studio 2003 Creating a simple Windows Form application from the templates, if I try to run it in debug mode devenv.exe aborts with this info: An unhandled exception...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.