ID: 25313 Updated by: [EMAIL PROTECTED] Reported By: duerra at yahoo dot com -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: XP Pro PHP Version: 4.3.3 New Comment:
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Try again.. Previous Comments: ------------------------------------------------------------------------ [2003-08-29 09:29:47] duerra at yahoo dot com Description: ------------ This has happened to me once before, too, and now I've noticed another user with the same problem. It can be found here: http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Windows/Q_20723364.html The problem is that for some reason (and not consistently), php proclaims a function as being undefined when called, even though it is clearly defined. The solution to the problem is to copy the function into a location *before* it is called, instead of after it is called. It's not consistent, and while I can't reproduce it in any traditional sense, in the cases where it does happen, it happens every time the script is called, until you copy the function to a location above where it is being called. Reproduce code: --------------- (See the link Posted Above) Expected result: ---------------- Expected function to execute Actual result: -------------- Fatal error: Call to undefined function: getvars() in c:\inetpub\wwwroot\baileybible\class\adminArticles.php on line 34 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25313&edit=1