cvs: php-src /pear PEAR.php

From: Date: Sat, 07 Feb 2004 04:42:08 +0000
Subject: cvs: php-src /pear PEAR.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-92@lists.php.net to get a copy of this message
cellog Fri Feb 6 23:42:08 2004 EDT Modified files: /php-src/pear PEAR.php Log: fix PATH_SEPARATOR issues - was defined in PHP 4.3.0, but documentation never showed this. http://cvs.php.net/diff.php/php-src/pear/PEAR.php?r1=1.76&r2=1.77&ty=u Index: php-src/pear/PEAR.php diff -u php-src/pear/PEAR.php:1.76 php-src/pear/PEAR.php:1.77 --- php-src/pear/PEAR.php:1.76 Sun Jan 25 18:53:13 2004 +++ php-src/pear/PEAR.php Fri Feb 6 23:42:07 2004 @@ -18,7 +18,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: PEAR.php,v 1.76 2004/01/25 23:53:13 pajoye Exp $ +// $Id: PEAR.php,v 1.77 2004/02/07 04:42:07 cellog Exp $ // define('PEAR_ERROR_RETURN', 1); @@ -40,6 +40,15 @@ define('PEAR_OS', 'Unix'); // blatant assumption } +// instant backwards compatibility +if (!defined('PATH_SEPARATOR')) { + if (OS_WINDOWS) { + define('PATH_SEPARATOR', ';'); + } else { + define('PATH_SEPARATOR', ':'); + } +} + $GLOBALS['_PEAR_default_error_mode'] = PEAR_ERROR_RETURN; $GLOBALS['_PEAR_default_error_options'] = E_USER_NOTICE; $GLOBALS['_PEAR_destructor_object_list'] = array();

« previous php.pear.core (#92) next »