I've got PHP 5.2.6 installed in the XAMPP suite on a Windows Server 2003 R2 box. I recently upgraded the Apache version from 2.2.9 to 2.2.13. Apache installed ok, but now when I go to the homepage, I get the following error:
-----------------------------------------------------------------------------------------------------------------
Fatal error: Call to undefined function mysql_escape_string() in D:\ezpublish\lib\ezdb\classes\ezmysqldb.php on line 848
Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.
------------------------------------------------------------------------------------------------------------------
ez Publish is our CMS. Is there something in one of the new Apache DLL that makes "mysql_escape_string()" invalid? On the PHP site it says the following about mysql_escape_string:
--------------------------------------------------------------------------------------------------------------
Warning
This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.
--------------------------------------------------------------------------------------------------------------
Can anyone help me out with this? Can I add or a remove a DLL maybe change the "mysql_escape_string()" to whatever replaces it? Thanks.
Upgraded Apache and now I get php error
Moderator: General Moderators
Re: Upgraded Apache and now I get php error
Probably installing new apache you've lost your php.ini file
Check where is the php.ini file (via phpinfo()) and enable the mysql extension in it
Check where is the php.ini file (via phpinfo()) and enable the mysql extension in it
Re: Upgraded Apache and now I get php error
Okay, I'll take a look at that. Thanks.
Re: Upgraded Apache and now I get php error
I checked and the php.ini file and the "extension=php_mysql.dll" is there and it's not commented out, so that's not the problem.