Page 1 of 1

Upgraded Apache and now I get php error

Posted: Fri Aug 28, 2009 2:01 pm
by sysop1911
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.

Re: Upgraded Apache and now I get php error

Posted: Fri Aug 28, 2009 2:07 pm
by Darhazer
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

Re: Upgraded Apache and now I get php error

Posted: Sat Aug 29, 2009 12:28 pm
by sysop1911
Okay, I'll take a look at that. Thanks.

Re: Upgraded Apache and now I get php error

Posted: Fri Sep 04, 2009 8:49 am
by sysop1911
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.