php-src/ext/standard/tests/general_functions/bug43293_3.phpt
Steph Fox fa3d01975b - killed off UEXPECT
- E_DEPRECATED doesn't always allow stuff to pass?
2008-05-27 00:04:31 +00:00

30 lines
371 B
PHP

--TEST--
Bug #43293 (Multiple segfaults in getopt())
--ARGS--
-f --f
--INI--
register_argc_argv=On
--FILE--
<?php
$args = array(true, false, "f");
var_dump(getopt("f", $args), $args);
?>
--EXPECT--
array(1) {
["f"]=>
array(2) {
[0]=>
bool(false)
[1]=>
bool(false)
}
}
array(3) {
[0]=>
bool(true)
[1]=>
bool(false)
[2]=>
unicode(1) "f"
}