mirror of
https://github.com/php/php-src.git
synced 2024-10-16 14:02:37 +00:00
fa3d01975b
- E_DEPRECATED doesn't always allow stuff to pass?
25 lines
314 B
PHP
25 lines
314 B
PHP
--TEST--
|
|
getopt
|
|
--ARGS--
|
|
-v -h -d test -m 1234 -t -j
|
|
--INI--
|
|
register_argc_argv=On
|
|
variables_order=GPS
|
|
--FILE--
|
|
<?php
|
|
var_dump(getopt("d:m:j:vht"));
|
|
?>
|
|
--EXPECT--
|
|
array(5) {
|
|
[u"v"]=>
|
|
bool(false)
|
|
[u"h"]=>
|
|
bool(false)
|
|
[u"d"]=>
|
|
unicode(4) "test"
|
|
[u"m"]=>
|
|
unicode(4) "1234"
|
|
[u"t"]=>
|
|
bool(false)
|
|
}
|