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