2010-02-24 56 views
2

我在我的站點引擎中使用DbSimple。一切正常,但前段時間我開始出現錯誤:Php,DbSimple錯誤

Deprecated: Assigning the return value of new by reference is deprecated in Z:\home\localhost\www\ololo\DbSimple\Generic.php on line 113 

Deprecated: Assigning the return value of new by reference is deprecated in Z:\home\localhost\www\ololo\DbSimple\Generic.php on line 133 

Deprecated: Assigning the return value of new by reference is deprecated in Z:\home\localhost\www\ololo\DbSimple\Mysql.php on line 73 

Warning: call_user_func() expects parameter 1 to be a valid callback, function 'mysqlErrorHandler' not found or invalid function name in Z:\home\localhost\www\ololo\DbSimple\Generic.php on line 1278 
SELECT * FROM `configuration` 
NULL 

它可能是什麼?

+0

它出現的API已經改變。你有升級你的PHP或DbSimple嗎? – 2010-02-24 16:19:34

+0

是的,據我瞭解,PHP已升級。但DbSimple是一箇舊的庫:( – Ockonal 2010-02-24 16:22:43

回答

3

我的猜測是你將PHP從5.2.x升級到了5.3。我看到了與Joomla類似的問題。

編輯:

Deprecated features in PHP 5.3.x

+0

是的,我認爲是這樣,我不能從數據庫得到任何結果,所以哪些函數被棄用? – Ockonal 2010-02-24 16:20:30

+0

謝謝,我將重寫DbSimple由於該功能。 – Ockonal 2010-02-24 16:29:56