php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25313 PHP Error: Undefined Function
Submitted: 2003-08-29 09:29 UTC Modified: 2003-08-29 09:31 UTC
From: duerra at yahoo dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.3 OS: XP Pro
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: duerra at yahoo dot com
New email:
PHP Version: OS:

 

 [2003-08-29 09:29 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-29 09:31 UTC] sniper@php.net
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..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 20:01:31 2024 UTC