Annotation of embedaddon/php/ext/pcntl/tests/pcntl_exec.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: pcntl_exec()
                      3: --SKIPIF--
                      4: <?php 
                      5: if (!extension_loaded("pcntl")) print "skip"; 
                      6: if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set");
                      7: ?>
                      8: --FILE--
                      9: <?php
                     10: echo "ok\n";
                     11: pcntl_exec(getenv("TEST_PHP_EXECUTABLE"));
                     12: echo "nok\n";
                     13: ?>
                     14: --EXPECT--
                     15: ok

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>