Server IP : 162.0.209.157 / Your IP : 3.139.234.68 [ Web Server : LiteSpeed System : Linux premium178.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : balaoqob ( 2395) PHP Version : 8.0.30 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/php71/usr/share/pear/test/Console_Getopt/tests/ |
Upload File : |
--TEST-- Console_Getopt [bug 11068] --SKIPIF-- --FILE-- <?php $_SERVER['argv'] = $argv = array('hi', '-fjjohnston@mail.com', '--to', 'hi', '-'); require_once 'Console/Getopt.php'; $ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), 'f:t:', array('from=','to=','mailpack=','direction=','verbose','debug')); if(PEAR::isError($ret)) { echo $ret->getMessage()."\n"; echo 'FATAL'; exit; } print_r($ret); ?> --EXPECT-- Array ( [0] => Array ( [0] => Array ( [0] => f [1] => jjohnston@mail.com ) [1] => Array ( [0] => --to [1] => hi ) ) [1] => Array ( [0] => - ) )