📂 FileMgr
📍
/
opt
/
alt
/
php85
/
usr
/
share
/
pear
/
test
/
Console_Getopt
/
tests
✏️ phpt
⬅ Kembali
--TEST-- Console_Getopt [bug 13140] --SKIPIF-- --FILE-- <?php $_SERVER['argv'] = $argv = array('--bob', '--foo' , '-bar', '--test', '-rq', 'thisshouldbehere'); require_once 'Console/Getopt.php'; $cg = new Console_GetOpt(); print_r($cg->getopt2($cg->readPHPArgv(), 't', array('test'), true)); print_r($cg->getopt2($cg->readPHPArgv(), 'bar', array('foo'), true)); ?> --EXPECT-- Array ( [0] => Array ( [0] => Array ( [0] => --test [1] => ) ) [1] => Array ( [0] => thisshouldbehere ) ) Array ( [0] => Array ( [0] => Array ( [0] => --foo [1] => ) [1] => Array ( [0] => b [1] => ) [2] => Array ( [0] => a [1] => ) [3] => Array ( [0] => r [1] => ) [4] => Array ( [0] => r [1] => ) ) [1] => Array ( [0] => thisshouldbehere ) )
💾 Simpan
Batal
⬅ Console_Getopt
4 item
Nama
Tipe
Ukuran
Diubah
Aksi
📄
001-getopt.phpt
phpt
1.2 KB
2026-03-16 10:12
✏️
👁️
🔤
🗑
📄
bug10557.phpt
phpt
494 B
2026-03-16 10:12
✏️
👁️
🔤
🗑
📄
bug11068.phpt
phpt
793 B
2026-03-16 10:12
✏️
👁️
🔤
🗑
📄
bug13140.phpt
phpt
1.3 KB
2026-03-16 10:12
✏️
👁️
🔤
🗑
✏️ Rename
Nama Baru
Simpan
Batal