#25000 [Opn->Fbk]: ext/mbstring/tests/php_gr_jp_16242.phpt uses $_ENV instead of getenv

From: Date: Sat, 09 Aug 2003 20:32:57 +0000
Subject: #25000 [Opn->Fbk]: ext/mbstring/tests/php_gr_jp_16242.phpt uses $_ENV instead of getenv
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-45641@lists.php.net to get a copy of this message
 ID:          25000
 Updated by:  moriyoshi@php.net
 Reported By: webmaster at ragnarokonline dot de
-Status:      Open
+Status:      Feedback
 Bug Type:    *Compile Issues
 PHP Version: 4CVS-2003-08-09 (stable)
 New Comment:

Congratulation 25000 entry! :)

Seriously, what difference do you think there is between
$_ENV["TEST_PHP_EXECUTABLE"] and getenv("TEST_PHP_EXECUTABLE") as that
variable is supposed to be populated before the test-run.. Works fine
here.



Previous Comments:
------------------------------------------------------------------------

[2003-08-09 15:27:04] webmaster at ragnarokonline dot de

Description:
------------
The new testcase located at ext/mbstring/tests/php_gr_jp_16242.phpt
fails, because $_ENV["TEST_PHP_EXECUTABLE"] is used instead of
getenv("TEST_PHP_EXECUTABLE")

To run this test, execute 

TEST_PHP_EXECUTABLE=sapi/cli/php \
sapi/cli/php -n run-tests.php \
ext/mbstring/tests/php_gr_jp_16242.phpt

after compiling PHP

The fix is simple:
in ext/mbstring/tests/php_gr_jp_16242.phpt REPLACE

$cmd .= ' ?>" |'.$_ENV["TEST_PHP_EXECUTABLE"].' -c '.$tmpfile;

WITH

$cmd .= ' ?>" |'.getenv("TEST_PHP_EXECUTABLE").' -c
'.$tmpfile;



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25000&edit=1



Thread (5 messages)

« previous php.bugs (#45641) next »