Hi,
I have a very special PHP problem.
I use Apache(1.3.31) and PHP 5.0.0rc3 on MorphOS.
Normally this PHP and Apache build runs fine.
I noticed that all long scripts (over 1000 lines) will kill the
Apache/PHP build.
I verified this with a very simple test script
<?
$i++
print "$i<br>";
$i++
print "$i<br>";
...[1000 more lines like the above]..
?>
Script with 1000 or less lines run fine in less than a second
as soon as I add a few hundred more lines PHP will die.
The amount of compiled lines of code is the limiting factor.
A script with 3000 lines of code and 2000 commented out lines runs fine.
But the same script with just 1200 lines of code (none of them
commended out) dies.
It looks like a memory problem but my machine has still more than 250
MB free...
The php memory limit (in php.ini) is set to 20MB.
I wonder if does PHP need a lot of stack to compile the source ?
The stack of MorphOS can not grow.
So if a program uses too much stack it can run into big problems.
Any ideas how to fix this?
Many thanks in advance.
-Gunnar
p.s. Please cc me as I'm not on this list.
Gunnar Von Boehn wrote:
Normally this PHP and Apache build runs fine.
I noticed that all long scripts (over 1000 lines) will kill the
Apache/PHP build.I verified this with a very simple test script
<?
$i++
print "$i<br>";
$i++
print "$i<br>";
...[1000 more lines like the above]..
?>Script with 1000 or less lines run fine in less than a second
as soon as I add a few hundred more lines PHP will die.
Trying to reproduce..
The same problem exists here, though on a significant higher linecount.
Tried it on WinXP, Apache 1.3.29 with PHP 5.0.0-dev (built: Jul-2-2004).
With 17.000 lines everything is fine. With 18.000 of the above lines
apache crashes. Verified it by adding and deleting 1.000 lines a few times.
Tried it on Linux, CLI PHP 5.0.0-dev (build: Jul-8-2004). Here it
segfaults exactly on 34517 lines. One line less, no problem. Reproducable.
Running under the Zend Debugger Apache doesn't crash.
Bert
Hi,
I have a very special PHP problem.
I use Apache(1.3.31) and PHP 5.0.0rc3 on MorphOS.
Please file a bugreport.
Derick
I wonder if it was related to the greedy read problem that was fixed a
little earlier today.
Please try a snapshot (it might be best to wait for the next snap).
--Wez.
On Sat, 10 Jul 2004 14:36:31 +0200 (CEST), Derick Rethans
derick@php.net wrote:
Hi,
I have a very special PHP problem.
I use Apache(1.3.31) and PHP 5.0.0rc3 on MorphOS.
Please file a bugreport.
Derick
Hi,
Please file a bugreport.
Good idea :)
I just wrote a bugreport.
If anyone has an idea why PHP crashes so early on MorphOS
and how this could be fixed , then i'll be very thankful.
Cheers
Gunnar
Hi,
[...]
I noticed that all long scripts (over 1000 lines) will kill the
Apache/PHP build.
Sounds like http://bugs.php.net/bug.php?id=28064 to me.
- Timm