1 need to setup extension dir to current build instead of defaulting to system
2 defaults (which may be different php version)
3 also use preprocessed PHP.INI from test framework
5 --- php-5.4.0alpha3/ext/pcntl/tests/pcntl_exec.phpt 2011-06-24 22:18:06.000000000 +0300
6 +++ php-5.4.0alpha3/ext/pcntl/tests/pcntl_exec.phpt 2011-08-22 09:36:01.105334996 +0300
11 -pcntl_exec(getenv("TEST_PHP_EXECUTABLE"));
12 +$php = getenv("TEST_PHP_EXECUTABLE");
13 +$extension_dir = ini_get("extension_dir");
14 +$inipath = php_ini_loaded_file();
15 +pcntl_exec($php, array("-n", "-d$extension_dir", "-c$inipath"));
19 --- php-5.4.0alpha3/ext/pcntl/tests/pcntl_exec_2.phpt~ 2011-06-24 22:18:06.000000000 +0300
20 +++ php-5.4.0alpha3/ext/pcntl/tests/pcntl_exec_2.phpt 2011-08-22 19:57:12.780576314 +0300
25 -pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), array(__FILE__), array(
27 +$php = getenv("TEST_PHP_EXECUTABLE");
28 +$extension_dir = ini_get("extension_dir");
29 +$inipath = php_ini_loaded_file();
30 +$args = array("-n", "-d$extension_dir", "-c$inipath", __FILE__);
32 +pcntl_exec($php, $args, array(
33 b"PCNTL_EXEC_TEST_IS_CHILD" => b"1",