[Bug 1320532] [NEW] display_errors Off not respected
Nick Fazakis
nikos at fazakis.gr
Sat May 17 18:03:40 UTC 2014
Public bug reported:
Guys while i have display_errors off in PHP 5.5.9-1ubuntu4 (package) it keeps printing the following error:
Unknown: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in seller/controller/dbOperator.php on line 9
if i set the display_errors On the error messages is:
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in system/database/mysql_cached.php on line 10
Unknown: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in seller/controller/dbOperator.php on line 9
For some reason the Unknown: error cant get hidden i'm using a work around like this:
ob_start();
$dbOp = new dbOperator($dbHost,$dbUsername,$dbPassword,$dbName);
ob_end_clean()
Just to hide the message. I also have to say that the same legacy code was running fine in ubuntu 12.04.
Have fun!
** Affects: php5 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1320532
Title:
display_errors Off not respected
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1320532/+subscriptions
More information about the Ubuntu-server-bugs
mailing list