cvs: pear /MDB/tests clitest.php

From: Date: Sun, 24 Nov 2002 21:20:49 +0000
Subject: cvs: pear /MDB/tests clitest.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7567@lists.php.net to get a copy of this message
lsmith Sun Nov 24 16:20:49 2002 EDT Modified files: /pear/MDB/tests clitest.php Log: fixed ini_set call Index: pear/MDB/tests/clitest.php diff -u pear/MDB/tests/clitest.php:1.1 pear/MDB/tests/clitest.php:1.2 --- pear/MDB/tests/clitest.php:1.1 Mon Nov 18 06:35:52 2002 +++ pear/MDB/tests/clitest.php Sun Nov 24 16:20:49 2002 @@ -57,7 +57,15 @@ php -q clitest.php teststorage testreplace */ -ini_set('include_path', '../:'.ini_get('include_path')); +// BC hack to define PATH_SEPARATOR for version of PHP prior 4.3 +if(!defined('PATH_SEPARATOR')) { + if(defined('DIRECTORY_SEPARATOR') && DIRECTORY_SEPARATOR == "\\") { + define('PATH_SEPARATOR', ';'); + } else { + define('PATH_SEPARATOR', ':'); + } +} +ini_set('include_path', '../'.PATH_SEPARATOR.ini_get('include_path')); require_once 'PHPUnit.php'; require_once 'test_setup.php';

« previous php.pear.cvs (#7567) next »