|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49195 cannot call mysql functions although mysql ext. installed
Submitted: 2009-08-08 05:01 UTC Modified: 2009-08-12 07:26 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: sean dot everlast at gmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.2SVN-2009-08-08 (snap) OS: Fedora Core 9 2.6.25-14.fc9.i686
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: sean dot everlast at gmail dot com
New email:
PHP Version: OS:


 [2009-08-08 05:01 UTC] sean dot everlast at gmail dot com
Fatal error: Call to undefined function mysql_connect() in.....

mysql extension is installed properly. yes, I'm positively 100% sure it 

Reproduce code:

mysql_connect("localhost","root","") or die(mysql_error());


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-09 14:52 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

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.

 [2009-08-12 05:14 UTC] erikhartog at yahoo dot com
This error occurred for me on the install of version 5.2.10.  I noticed that my Windows installer did not upgrade the ext directory to the 5.2.10 versions.

Once I manually installed the correct ext libraries all of the files worked.  

It seems the installer was not properly modified.
 [2009-08-12 05:16 UTC] sean dot everlast at gmail dot com
It's really weird, sometimes it's happening, but a server restart gets 
it fixed until the next one.

Since I'm only using PHP for some backend cron jobs, will probably 
switch to perl.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 22 23:01:24 2023 UTC