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.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php