getopt
--ARGS--
-v -h -d test -m 1234 -t -j
+--INI--
+register_argc_argv=On
+variables_order=GPS
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip getopt() is currently not available on Windows');
}
- if (!ini_get('register_argc_argv')) {
- die("skip this test needs register_argc_argv to be enabled");
- }
?>
--FILE--
<?php
<?php (PHP_SAPI != 'cli') and print "SKIP PHP binary is not cli"; ?>
--FILE--
<?php
-$fh = popen("{$_ENV['TEST_PHP_EXECUTABLE']} -a", 'w');
+$exe = getenv('TEST_PHP_EXECUTABLE');
+$fh = popen("$exe -a", 'w');
if ($fh !== false) {
fwrite($fh, "<?php echo ':test:'; ?>\n\n");
fclose($fh);