Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/phar/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/phar/tests/bug47085.phpt |
--TEST-- Phar: PHP bug #47085: "rename() returns true even if the file in PHAR does not exist" --SKIPIF-- <?php if (!extension_loaded("phar")) die("skip"); ?> --INI-- phar.require_hash=0 phar.readonly=0 --FILE-- <?php $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar'; $phar = new Phar($fname, 0, 'a.phar'); $phar['x'] = 'hi'; unset($phar); rename("phar://a.phar/x", "phar://a.phar/y"); var_dump(rename("phar://a.phar/x", "phar://a.phar/y")); ?> ===DONE=== --CLEAN-- <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');?> --EXPECTF-- Warning: rename(): phar error: cannot rename "phar://a.phar/x" to "phar://a.phar/y" from extracted phar archive, source does not exist in %sbug47085.php on line %d bool(false) ===DONE===
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare