|
From: <var...@us...> - 2021-07-30 09:00:20
|
Revision: 10402
http://sourceforge.net/p/phpwiki/code/10402
Author: vargenau
Date: 2021-07-30 09:00:18 +0000 (Fri, 30 Jul 2021)
Log Message:
-----------
Remove unused function _pear_notice_filter
Modified Paths:
--------------
trunk/lib/WikiDB/backend/PearDB.php
Modified: trunk/lib/WikiDB/backend/PearDB.php
===================================================================
--- trunk/lib/WikiDB/backend/PearDB.php 2021-07-30 08:59:36 UTC (rev 10401)
+++ trunk/lib/WikiDB/backend/PearDB.php 2021-07-30 09:00:18 UTC (rev 10402)
@@ -1110,22 +1110,6 @@
return str_replace($this->_dsn, $safe_dsn, $message);
}
- /*
- * Filter PHP errors notices from PEAR DB code.
- *
- * The PEAR DB code which ships with PHP 4.0.6 produces spurious
- * errors and notices. This is an error callback (for use with
- * ErrorManager which will filter out those spurious messages.)
- * @see _is_false_error, ErrorManager
- */
- function _pear_notice_filter($err)
- {
- return ($err->isNotice()
- && preg_match('|DB[/\\\\]common.php$|', $err->errfile)
- && $err->errline == 126
- && preg_match('/Undefined offset: +0\b/', $err->errstr));
- }
-
/* some variables and functions for DB backend abstraction (action=upgrade) */
function database()
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|