cvs: php4 /pear/PEAR/Command Package.php

From: Date: Wed, 22 May 2002 12:44:21 +0000
Subject: cvs: php4 /pear/PEAR/Command Package.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4037@lists.php.net to get a copy of this message
cox Wed May 22 08:44:21 2002 EDT Modified files: /php4/pear/PEAR/Command Package.php Log: Trigger an error if the run-test.php file is not found Make the run-tests pear cmd run with the CGI SAPI Index: php4/pear/PEAR/Command/Package.php diff -u php4/pear/PEAR/Command/Package.php:1.29 php4/pear/PEAR/Command/Package.php:1.30 --- php4/pear/PEAR/Command/Package.php:1.29 Mon May 20 21:44:06 2002 +++ php4/pear/PEAR/Command/Package.php Wed May 22 08:44:21 2002 @@ -16,7 +16,7 @@ // | Author: Stig Bakken <ssb@fast.no> | // +----------------------------------------------------------------------+ // -// $Id: Package.php,v 1.29 2002/05/21 01:44:06 ssb Exp $ +// $Id: Package.php,v 1.30 2002/05/22 12:44:21 cox Exp $ require_once 'PEAR/Common.php'; require_once 'PEAR/Command/Common.php'; @@ -331,9 +331,12 @@ $run_tests = $this->config->get('php_dir') . DIRECTORY_SEPARATOR . 'run-tests.php'; if (!file_exists($run_tests)) { $run_tests = PEAR_INSTALL_DIR . DIRECTORY_SEPARATOR . 'run-tests.php'; + if (!file_exists($run_tests)) { + return $this->raiseError("No `run-test.php' file found"); + } } $plist = implode(" ", $params); - $cmd = "$php -d include_path=$cwd$ps$ip $run_tests $plist"; + $cmd = "$php -C -d include_path=$cwd$ps$ip -f $run_tests -- $plist"; system($cmd); return true; }

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