ID: 50061 Updated by: paj...@php.net Reported By: lunaelipsis at hotmail dot com -Status: Open +Status: Bogus Bug Type: MySQL related Operating System: Windows 7 PHP Version: 5.2.11 New Comment:
You certainly use two different php for CLI (php -m) and apache. Verify that the php.ini loaded by the apache's php is the same than cli. But there is no bug here, it is a configuration problem. Previous Comments: ------------------------------------------------------------------------ [2009-11-03 11:18:41] lunaelipsis at hotmail dot com Description: ------------ I encountered the known issue of the "Fatal error: Call to undefined function mysql_connect()" with PHP 5.2.11 runnnig Apache 2.2 on Windows 7 connecting to distant MySQL 5 database. What i did to try to resolve it : Checked that C:\PHP was in windows PATH variable Checked that libmysql.dll was present Checked that php_mysql.dll was present Checked that extension=php_mysql.dll was uncommented Ran cmd.exe -> php -m it shown every module loaded with php including MySQL. Reproduce code: --------------- Install PHP 5.2.11 on Windows 7 with Apache 2.2 and do the required configurations to use mysql. Expected result: ---------------- PHP doesn't reconize any mysql_* functions Actual result: -------------- I reinstalled php 5.2.9.9 and it worked directly. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50061&edit=1