|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2061 parser sometimes forgets defined functions
Submitted: 1999-08-15 06:06 UTC Modified: 2000-09-13 05:31 UTC
From: k at les dot cz Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0.11 OS: RedHat Linux 5.2, kernel 2.0.36
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.
Block user comment
Status: Assign to:
Bug Type:
From: k at les dot cz
New email:
PHP Version: OS:


 [1999-08-15 06:06 UTC] k at les dot cz
This will be a bit weird and hardly reproducable one... :(

When I'm trying to call some global function from
a class, parser occasionally reports
Fatal error: Call to unsupported or undefined function...

It usually happens in large scripts composed from more classes if called with POST method, but I'm sure
"missing" function is always defined - it happens in
scripts like

function sql_debug($msg) {
    if (!empty($GLOBALS['SQLDEBUG']))
        echo htmlspecialchars($msg);

class sql {
   function query($query) {

When I resubmit form data, everything works.

I have PHP compiled with MySQL support and with
php-czech patch (
but this patch only counverts output of PHP script and has
nothing to do with parser, that's why I don't think it
could cause this problem.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-13 05:31 UTC]
I doubt this is still happening in the current codebase.  Re-open if you can reproduce it with a current version of PHP.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 18:01:28 2023 UTC