Annotation of embedaddon/php/ext/pcntl/tests/pcntl_exec_2.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: pcntl_exec() 2
! 3: --SKIPIF--
! 4: <?php
! 5:
! 6: if (!extension_loaded("pcntl")) print "skip";
! 7: if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set");
! 8:
! 9: ?>
! 10: --FILE--
! 11: <?php
! 12: if (getenv("PCNTL_EXEC_TEST_IS_CHILD")) {
! 13: var_dump((binary)getenv("FOO"));
! 14: exit;
! 15: }
! 16: echo "ok\n";
! 17: pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), array(__FILE__), array(
! 18: b"PCNTL_EXEC_TEST_IS_CHILD" => b"1",
! 19: b"FOO" => b"BAR",
! 20: 1 => b"long")
! 21: );
! 22:
! 23: echo "nok\n";
! 24: ?>
! 25: --EXPECT--
! 26: ok
! 27: string(3) "BAR"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>