]> git.pld-linux.org Git - packages/php.git/commitdiff
- fix for pcntl test fail with mismatching php versions of installed and building one
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 22 Aug 2011 17:05:00 +0000 (17:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bug-test-pcntl-55479.patch -> 1.1

bug-test-pcntl-55479.patch [new file with mode: 0644]

diff --git a/bug-test-pcntl-55479.patch b/bug-test-pcntl-55479.patch
new file mode 100644 (file)
index 0000000..8f20b23
--- /dev/null
@@ -0,0 +1,35 @@
+need to setup extension dir to current build instead of defaulting to system
+defaults (which may be different php version)
+also use preprocessed PHP.INI from test framework
+
+--- php-5.4.0alpha3/ext/pcntl/tests/pcntl_exec.phpt    2011-06-24 22:18:06.000000000 +0300
++++ php-5.4.0alpha3/ext/pcntl/tests/pcntl_exec.phpt    2011-08-22 09:36:01.105334996 +0300
+@@ -8,7 +8,10 @@
+ --FILE--
+ <?php
+ echo "ok\n";
+-pcntl_exec(getenv("TEST_PHP_EXECUTABLE"));
++$php = getenv("TEST_PHP_EXECUTABLE");
++$extension_dir = ini_get("extension_dir");
++$inipath = php_ini_loaded_file();
++pcntl_exec($php, array("-n", "-d$extension_dir", "-c$inipath"));
+ echo "nok\n";
+ ?>
+ --EXPECT--
+--- php-5.4.0alpha3/ext/pcntl/tests/pcntl_exec_2.phpt~ 2011-06-24 22:18:06.000000000 +0300
++++ php-5.4.0alpha3/ext/pcntl/tests/pcntl_exec_2.phpt  2011-08-22 19:57:12.780576314 +0300
+@@ -14,7 +14,13 @@
+       exit;
+ }
+ echo "ok\n";
+-pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), array(__FILE__), array(
++
++$php = getenv("TEST_PHP_EXECUTABLE");
++$extension_dir = ini_get("extension_dir");
++$inipath = php_ini_loaded_file();
++$args = array("-n", "-d$extension_dir", "-c$inipath", __FILE__);
++
++pcntl_exec($php, $args, array(
+       b"PCNTL_EXEC_TEST_IS_CHILD" => b"1", 
+       b"FOO" => b"BAR",
+       1 => b"long")
This page took 0.046233 seconds and 4 git commands to generate.