--TEST-- GH-17518 (offset overflow phar extractTo()) --EXTENSIONS-- phar --INI-- phar.readonly=0 --FILE-- extractTo(__DIR__ . '/gh17518', ''); } catch (Throwable $e) { echo $e::class, ": ", $e->getMessage(), "\n"; } ?> --CLEAN-- --EXPECTF-- PharException: phar error: attempted to extract non-existent file or directory "" from phar "%sgh17518.phar.php"