php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3692 Randomly undefined user functions
Submitted: 2000-03-01 14:50 UTC Modified: 2002-10-01 15:30 UTC
From: mikael dot grave at webmotion dot com Assigned:
Status: Wont fix Package: Parser error
PHP Version: 3.0.15 OS: Linux (kernel 2.2.14)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mikael dot grave at webmotion dot com
New email:
PHP Version: OS:

 

 [2000-03-01 14:50 UTC] mikael dot grave at webmotion dot 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 (?).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 15:30 UTC] hholzgra@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC