[Openfirst-cvscommit] base/includes compatibility.php,1.2,1.3
Brought to you by:
xtimg
From: Astronouth7303 <ast...@us...> - 2005-08-17 16:15:27
|
Update of /cvsroot/openfirst/base/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24916/includes Modified Files: compatibility.php Log Message: - Added set_include_path(), get_include_path(), and restore_include_path() - Converted line endings to LF (may not commit?) - Removed entity ' Index: compatibility.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/compatibility.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** compatibility.php 27 May 2005 16:07:51 -0000 1.2 --- compatibility.php 17 Aug 2005 16:15:13 -0000 1.3 *************** *** 33,37 **** // We use glob enough that we should either write a substitute or just refuse to work if(!function_exists('glob')) { ! die('You really should upgrade PHP, seeing as you don't even have <a href="http://www.php.net/manual/en/function.glob.php"><code>glob()</code></a>.'); } --- 33,37 ---- // We use glob enough that we should either write a substitute or just refuse to work if(!function_exists('glob')) { ! die('You really should upgrade PHP, seeing as you don\'t even have <a href="http://www.php.net/manual/en/function.glob.php"><code>glob()</code></a>.'); } *************** *** 48,50 **** --- 48,70 ---- } } + + if (!function_exists('set_include_path')) { + function set_include_path($new_include_path) { + $old = get_include_path(); + ini_set('include_path', $new_include_path); + return $old; + } + } + + if (!function_exists('get_include_path')) { + function get_include_path() { + return ini_get('include_path'); + } + } + + if (!function_exists('restore_include_path')) { + function restore_include_path() { + ini_restore('include_path'); + } + } ?> |