From ccefaf48ebed8e45567f97a463b24f07992886e9 Mon Sep 17 00:00:00 2001 From: rurban Date: Mon, 28 Feb 2005 21:24:34 +0000 Subject: [PATCH] ignore forbidden ini_set warnings. Bug #1117254 by Xavier Roche git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@4627 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/FileFinder.php | 13 ++++++++++--- lib/IniConfig.php | 11 +++++++---- lib/WikiDB/adodb/drivers/adodb-mssql.inc.php | 2 +- lib/main.php | 7 +++++-- lib/pear/DB/sqlite.php | 6 +++--- lib/pear/PEAR.php | 4 ++-- lib/plugin/PageTrail.php | 7 +++++-- 7 files changed, 33 insertions(+), 17 deletions(-) diff --git a/lib/FileFinder.php b/lib/FileFinder.php index be39e6ae7..5ea49486d 100644 --- a/lib/FileFinder.php +++ b/lib/FileFinder.php @@ -1,4 +1,4 @@ -_get_ini_separator(), $this->_path)); + @ini_set('include_path', implode($this->_get_ini_separator(), $this->_path)); } /** @@ -292,7 +292,7 @@ class FileFinder array_splice($this->_path, $i, 1); } array_unshift($this->_path, $dir); - ini_set('include_path', implode($this->_path, $this->_get_ini_separator())); + @ini_set('include_path', implode($this->_path, $this->_get_ini_separator())); } // Return all the possible shortened locale specifiers for the given locale. @@ -587,6 +587,13 @@ function isCygwin() { } // $Log: not supported by cvs2svn $ +// Revision 1.30 2004/11/10 19:32:21 rurban +// * optimize increaseHitCount, esp. for mysql. +// * prepend dirs to the include_path (phpwiki_dir for faster searches) +// * Pear_DB version logic (awful but needed) +// * fix broken ADODB quote +// * _extract_page_data simplification +// // Revision 1.29 2004/11/09 17:11:03 rurban // * revert to the wikidb ref passing. there's no memory abuse there. // * use new wikidb->_cache->_id_cache[] instead of wikidb->_iwpcache, to effectively diff --git a/lib/IniConfig.php b/lib/IniConfig.php index 858ab8ded..f2ae37f18 100644 --- a/lib/IniConfig.php +++ b/lib/IniConfig.php @@ -1,5 +1,5 @@ = 0x4300) { // docs say 4.2.0, but testing shows only since 4.3.0 does it work! - ini_set('mssql.datetimeconvert',0); + @ini_set('mssql.datetimeconvert',0); } else { global $ADODB_mssql_mths; // array, months must be upper-case diff --git a/lib/main.php b/lib/main.php index 01c3ca9e5..b282f9b4c 100644 --- a/lib/main.php +++ b/lib/main.php @@ -1,5 +1,5 @@ | // +----------------------------------------------------------------------+ // -// $Id: sqlite.php,v 1.4 2004-06-21 08:39:38 rurban Exp $ +// $Id: sqlite.php,v 1.5 2005-02-28 21:24:33 rurban Exp $ require_once 'DB/common.php'; @@ -27,7 +27,7 @@ require_once 'DB/common.php'; * PECL extension. * * @package DB - * @version $Id: sqlite.php,v 1.4 2004-06-21 08:39:38 rurban Exp $ + * @version $Id: sqlite.php,v 1.5 2005-02-28 21:24:33 rurban Exp $ * @category Database * @author Urs Gehrig * @author Mika Tuupola @@ -185,7 +185,7 @@ class DB_sqlite extends DB_common $ismanip = DB::isManip($query); $this->last_query = $query; $query = $this->_modifyQuery($query); - ini_set('track_errors', true); + @ini_set('track_errors', true); $result = @sqlite_query($query, $this->connection); ini_restore('track_errors'); $this->_lasterror = isset($php_errormsg) ? $php_errormsg : ''; diff --git a/lib/pear/PEAR.php b/lib/pear/PEAR.php index 487e0d64d..bd6eed6ab 100644 --- a/lib/pear/PEAR.php +++ b/lib/pear/PEAR.php @@ -18,7 +18,7 @@ // | Tomas V.V.Cox | // +----------------------------------------------------------------------+ // -rcs_id('$Id: PEAR.php,v 1.4 2004-06-21 08:39:37 rurban Exp $'); +rcs_id('$Id: PEAR.php,v 1.5 2005-02-28 21:24:33 rurban Exp $'); rcs_id('From Pear CVS: Id: PEAR.php,v 1.59 2003/04/03 23:10:10 ssb Exp'); // @@ -47,7 +47,7 @@ $GLOBALS['_PEAR_destructor_object_list'] = array(); $GLOBALS['_PEAR_shutdown_funcs'] = array(); $GLOBALS['_PEAR_error_handler_stack'] = array(); -ini_set('track_errors', true); +@ini_set('track_errors', true); /** * Base class for other PEAR classes. Provides rudimentary diff --git a/lib/plugin/PageTrail.php b/lib/plugin/PageTrail.php index 3a81a077c..11a98601e 100644 --- a/lib/plugin/PageTrail.php +++ b/lib/plugin/PageTrail.php @@ -1,5 +1,5 @@