From:             duerra at yahoo dot com
Operating system: XP Pro
PHP version:      4.3.3
PHP Bug Type:     *General Issues
Bug description:  PHP Error:  Undefined Function

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 bug report at http://bugs.php.net/?id=25313&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25313&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25313&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25313&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25313&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25313&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25313&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25313&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25313&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25313&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25313&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25313&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25313&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25313&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25313&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25313&r=gnused

Reply via email to