php.net |  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
 [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

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

class sql {
   ...
   function query($query) {
       sql_debug($query);
       ....
   }
};
?>

When I resubmit form data, everything works.

I have PHP compiled with MySQL support and with
php-czech patch (http://lide.punknet.cz/miri/php-czech/php-czech-0.30.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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-13 05:31 UTC] rasmus@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 15 10:01:27 2024 UTC