Bug #2061: parser sometimes forgets defined functions
| From: | k at les dot cz | Date: | Sun, 15 Aug 1999 10:06:21 +0000 |
| Subject: | Bug #2061: parser sometimes forgets defined functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9864@lists.php.net to get a copy of this message | ||
From: k@les.cz
Operating system: RedHat Linux 5.2, kernel 2.0.36
PHP version: 3.0.11
PHP Bug Type: Parser error
Bug description: parser sometimes forgets defined functions
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.