php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21893 PHP Fatal error: Call to undefined function: mysql_stat()
Submitted: 2003-01-26 21:09 UTC Modified: 2003-02-20 14:25 UTC
From: mark at autumnweave dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.0 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
21 - 4 = ?
Subscribe to this entry?

 
 [2003-01-26 21:09 UTC] mark at autumnweave dot com
<?php

/*******
Just noticed that since upgrading to 4.3.0 the mysql_stat() function does not seem to work anymore. It did work previously with 4.2.3, log files show php reporting it as an undefined function now. Online documentation shows the function to be available in 4.3.0.
*******/

$mysql_link = mysql_connect("mysql_host", "mysql_user", "mysql_password");

$status = explode('  ', mysql_stat($mysql_link));

print_r($status);


/******* compile options

'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-config-file-path=/usr/local/apache/conf' '--disable-short-tags' '--with-zlib' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp' '--with-gd' '--with-ttf' '--enable-gd-native-ttf' '--with-png-dir' '--with-jpeg-dir' '--with-freetype-dir' '--with-xpm-dir' '--with-imap' '--with-kerberos' '--with-imap-ssl' '--with-mcrypt' '--with-mhash' '--with-ming' '--with-mysql' '--with-mysql-sock' '--with-pgsql' '--with-pspell' '--enable-sockets' '--enable-wddx' '--with-expat' '--with-imagick' '--with-openssl' '--with-curl' '--with-mm'

********/
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-26 21:12 UTC] mark at autumnweave dot com
Oh yeah, also relevant MySQL 3.23.54a.
 [2003-02-12 23:55 UTC] sniper@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


But I really think you're doing something wrong since
it exists always since you use the bundled mysql libs..

 [2003-02-20 08:03 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2003-02-20 14:02 UTC] mark at autumnweave dot com
Have rebuilt PHP (same source as I reported the bug from) and no longer experience the problem. Thank you for your time and effort.
 [2003-02-20 14:25 UTC] pollita@php.net
"Open" would only be relevant if you were still experiencing the problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 03:01:32 2024 UTC