#3692 [Opn->]: Randomly undefined user functions

From: Date: Tue, 01 Oct 2002 20:30:11 +0000
Subject: #3692 [Opn->]: Randomly undefined user functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21140@lists.php.net to get a copy of this message
ID: 3692 Updated by: hholzgra@php.net Reported By: mikael.grave@webmotion.com -Status: Open +Status: Won\'t fix Bug Type: Parser error Operating System: Linux (kernel 2.2.14) PHP Version: 3.0.15 New Comment: We are sorry, but can not support PHP 3 related problems anymore. Momentum is gathering for PHP 5, and we think supporting PHP 3 will lead to a waste of resources which we want to put into getting PHP 5 ready. Ofcourse PHP 4 will will continue to be supported for the forseeable future. Previous Comments: ------------------------------------------------------------------------ [2000-03-01 14:50:41] mikael.grave@webmotion.com <? function foo() { } foo(); echo( "Hello world!" ); ?> This small script randomly produces the following fatal error: Fatal error: Call to unsupported or undefined function foo() in /xxx/xxx/foo.phtml on line 5. NOTE: The longer the foo()'s boody is, the more often the bug occurs. We have been encountered this problem also with previous PHP version, but less frequently (not enough to be serously taken into consideration). Our config: configure --disable-safe-mode --enable-memory-limit --enable-track-vars --enable-force-cgi-redirect --enable-discard-path --with-config-file-path=/usr/local/etc ${MYSQL} --with-gd --with-xml --with-apxs=find /usr/local/${VERSION}/ -name apxs -print We run PHP as an Apache module with error_reporting set to level 15. Related problem: when the parser finds a real syntax error, reloading the broken page often produces the same kind of fatal error (rather than issuing again the syntax error). Looks like the parser got some junk from its previous file rendering (?). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=3692&edit=1

« previous php.bugs (#21140) next »