php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23996 Undefined Function mysql_result_array() on first call after restart
Submitted: 2003-06-03 12:55 UTC Modified: 2003-06-04 01:01 UTC
From: MattPfenninger at mac dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.1 OS: MacOS 10.2.6
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: MattPfenninger at mac dot com
New email:
PHP Version: OS:

 

 [2003-06-03 12:55 UTC] MattPfenninger at mac dot com
My Setup:  Running Server Logistics/Aaron Faby 
precompiled Apache2.0.45/PHP4.3.1/MySQL4.0.12 on MacOS 
10.2.6.  Setup is default except for including "*.htm" 
as HTML in httpd.conf.  (full phpinfo() available on 
request)

My Application:  I am writing an HTML form processor 
(script available on request) using the common re-
entrant (via POST) PHP script technique.  (I can send 
either the script or a snippet if desired)

The Problem:  The script works perfectly EXCEPT for the 
first execution after an Apache restart (graceful, 
haven't checked hard restart, yet).

On the first execution after restart, I receive a 
"Fatal Error:  Call to undefined function 
mysql_result_array()" on the first attempt to call that 
function.  Reloading/(Reposting to) the script does not 
produce the error, nor does reloading the script later 
in the workday.  Error only occurs the first call after 
restarting the server.

Any ideas/suggestions?  Could this be a bug in PHP's 
code cache?

Thanks for your time.

- Matt Pfenninger

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-03 17:05 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

If the problem persists, please indicate if you are loading the MySQL extension dynamically.
 [2003-06-03 22:33 UTC] sniper@php.net
This mysql_result_array() function you're trying to call..is it defined in your scripts somewhere?

 [2003-06-04 00:25 UTC] MattPfenninger at mac dot com
Um...It's part of the standard functions compiled into 
PHP (when compiled with MySQL Support).
 [2003-06-04 00:32 UTC] rasmus@php.net
Sorry, mysql_result_array() is not a PHP function.
 [2003-06-04 01:01 UTC] MattPfenninger at mac dot com
My mistake.  The function call is "mysql_fetch_array()" 
not "mysql_result_array()".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 08:01:29 2024 UTC