cvs: pear-core /PEAR RunTest.php

From: Date: Sat, 17 Feb 2007 04:38:27 +0000
Subject: cvs: pear-core /PEAR RunTest.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-5431@lists.php.net to get a copy of this message
cellog Sat Feb 17 04:38:27 2007 UTC Modified files: /pear-core/PEAR RunTest.php Log: fix testing of return value in PHP 5 http://cvs.php.net/viewvc.cgi/pear-core/PEAR/RunTest.php?r1=1.29&r2=1.30&diff_format=u Index: pear-core/PEAR/RunTest.php diff -u pear-core/PEAR/RunTest.php:1.29 pear-core/PEAR/RunTest.php:1.30 --- pear-core/PEAR/RunTest.php:1.29 Sat Feb 17 04:29:22 2007 +++ pear-core/PEAR/RunTest.php Sat Feb 17 04:38:27 2007 @@ -16,7 +16,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: RunTest.php,v 1.29 2007/02/17 04:29:22 cellog Exp $ + * @version CVS: $Id: RunTest.php,v 1.30 2007/02/17 04:38:27 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.3.3 */ @@ -152,6 +152,9 @@ } } $code = proc_close($proc); + if (function_exists('proc_get_status')) { + $code = $stat['exitcode']; + } return array($code, $data); }

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