Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
phar /
tests /
bug64931 /
Delete
Unzip
Name
Size
Permission
Date
Action
src
[ DIR ]
drwxrwxr-x
2022-10-31 11:36
bug64931.phpt
1.37
KB
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Bug #64931 (phar_add_file is too restrictive on filename) --SKIPIF-- <?php extension_loaded("phar") or die("skip need ext/phar support"); ?> --INI-- phar.readonly=0 --FILE-- <?php echo "Test\n"; @unlink(__DIR__."/bug64931.phar"); $phar = new Phar(__DIR__."/bug64931.phar"); $phar->addFile(__DIR__."/src/.pharignore", ".pharignore"); try { $phar->addFile(__DIR__."/src/.pharignore", ".phar/gotcha"); } catch (Exception $e) { echo "CAUGHT: ". $e->getMessage() ."\n"; } try { $phar->addFromString(".phar", "gotcha"); } catch (Exception $e) { echo "CAUGHT: ". $e->getMessage() ."\n"; } try { $phar->addFromString(".phar//", "gotcha"); } catch (Exception $e) { echo "CAUGHT: ". $e->getMessage() ."\n"; } try { $phar->addFromString(".phar\\", "gotcha"); } catch (Exception $e) { echo "CAUGHT: ". $e->getMessage() ."\n"; } try { $phar->addFromString(".phar\0", "gotcha"); } catch (Exception $e) { echo "CAUGHT: ". $e->getMessage() ."\n"; } ?> ===DONE=== --CLEAN-- <?php @unlink(__DIR__."/bug64931.phar"); ?> --EXPECTF-- Test CAUGHT: Cannot create any files in magic ".phar" directory CAUGHT: Cannot create any files in magic ".phar" directory CAUGHT: Cannot create any files in magic ".phar" directory CAUGHT: Cannot create any files in magic ".phar" directory Warning: Phar::addFromString() expects parameter 1 to be a valid path, string given in %s%ebug64931.php on line %d ===DONE===