uawdijnntqw1x1x1
IP : 3.142.52.141
Hostname : server86.web-hosting.com
Kernel : Linux server86.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
.
/
..
/
home4
/
..
/
opt
/
alt
/
libwebp
/
..
/
tests
/
alt-php80-pecl-rar_4.2.0-1.el8
/
tests
/
077.phpt
/
/
--TEST-- RarArchive::open NULL can be given to indicate there's no password --SKIPIF-- <?php if(!extension_loaded("rar")) print "skip"; ?> --FILE-- <?php $f = dirname(__FILE__) . '/encrypted_headers.rar'; echo "* No password given:\n"; $file = RarArchive::open($f); rar_list($file); echo "* NULL given:\n"; $file = RarArchive::open($f, NULL); rar_list($file); echo "* empty string given:\n"; $file = RarArchive::open($f, ''); rar_list($file); echo "* wrong password given:\n"; $file = RarArchive::open($f, "wrongpassword"); rar_list($file); echo "\n"; echo "Done.\n"; --EXPECTF-- * No password given: Warning: rar_list(): ERAR_MISSING_PASSWORD (password needed but not specified) in %s on line %d * NULL given: Warning: rar_list(): ERAR_MISSING_PASSWORD (password needed but not specified) in %s on line %d * empty string given: Warning: rar_list(): ERAR_MISSING_PASSWORD (password needed but not specified) in %s on line %d * wrong password given: Warning: rar_list(): ERAR_BAD_DATA in %s on line %d Done.
/home/./../home4/../opt/alt/libwebp/../tests/alt-php80-pecl-rar_4.2.0-1.el8/tests/077.phpt