uawdijnntqw1x1x1
IP : 3.23.100.174
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
/
037.phpt
/
/
--TEST-- RarEntry::getStream(), password not given, with exceptions --SKIPIF-- <?php if(!extension_loaded("rar")) print "skip"; ?> --FILE-- <?php RarException::setUsingExceptions(true); echo "--> should fail (no password):\n"; $rar_file1 = rar_open(dirname(__FILE__).'/encrypted_only_files.rar'); $entries = rar_list($rar_file1); var_dump(count($entries)); try { var_dump($entries[0]->getStream()); } catch (RarException $re) { echo "Message: " . $re->getMessage()."\n"; echo "Code: " . $re->getCode() ."\n"; } echo "Done.\n"; --EXPECTF-- --> should fail (no password): int(2) Message: unRAR internal error: ERAR_MISSING_PASSWORD (password needed but not specified) Code: 22 Done.
/home/./../home4/../opt/alt/libwebp/../tests/alt-php80-pecl-rar_4.2.0-1.el8/tests/037.phpt