1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 08:28:26 +02:00
Files
archived-php-src/ext/phar/tests/bug66960.phpt
T
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

27 lines
588 B
PHP

--TEST--
Bug #66960 phar long filename crash
--EXTENSIONS--
phar
--INI--
phar.readonly = 0
memory_limit = -1
--FILE--
<?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'bug66960.phar';
$phar = new Phar($file);
var_dump(file_exists("phar://$file/". str_repeat('a', PHP_MAXPATHLEN-1)));
var_dump(file_exists("phar://$file/". str_repeat('a', PHP_MAXPATHLEN)));
var_dump(file_exists("phar://$file/". str_repeat('a', PHP_MAXPATHLEN+1)));
echo 'done';
?>
--CLEAN--
<?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'bug66960.phar';
unlink($file);
?>
--EXPECT--
bool(false)
bool(false)
bool(false)
done