Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11032 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10557 invoked by uid 1010); 9 Jul 2004 17:04:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10455 invoked from network); 9 Jul 2004 17:04:19 -0000 Received: from unknown (HELO smtprelay02.ispgateway.de) (62.67.200.157) by pb1.pair.com with SMTP; 9 Jul 2004 17:04:19 -0000 Received: (qmail 18526 invoked from network); 9 Jul 2004 17:04:18 -0000 Received: from unknown (HELO [192.168.2.14]) ([pbs]330472@[80.138.11.20]) (envelope-sender ) by smtprelay02.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 9 Jul 2004 17:04:18 -0000 Mime-Version: 1.0 (Apple Message framework v618) Content-Transfer-Encoding: 7bit Message-ID: <031EFFB2-D1CA-11D8-855A-000A9588808C@greyhound-data.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: internals@lists.php.net Date: Fri, 9 Jul 2004 19:04:17 +0200 X-Mailer: Apple Mail (2.618) Subject: PHP 5.0 crash on long php script with over 1000 lines From: gunnar@greyhound-data.com (Gunnar von Boehn) 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
"; ...[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.