|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2003-08-09 15:27 UTC] 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;
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 18:00:01 2025 UTC | 
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.> Congratulation 25000 entry! :) Thanks ^_^ > 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. Well, the whole array is empty on my site (running SuSE 8.2) and if you search for 'TEST_PHP_EXECUTABLE' though all phpt-files in the dump, all resulting testcases use getenv instead of $_ENV