mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
28 lines
469 B
PHP
28 lines
469 B
PHP
--TEST--
|
|
Test dirname() function : regression with path normalization
|
|
--SKIPIF--
|
|
<?php
|
|
if(substr(PHP_OS, 0, 3) != "WIN")
|
|
die("skip Only valid for Windows");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$s = '/php_sanity/sanity.php?';
|
|
while (dirname($s) == "/php_sanity" && strlen($s) < 10000) {
|
|
$s .= str_repeat('X', 250);
|
|
}
|
|
|
|
if (strlen($s) >= 10000) {
|
|
echo "OK\n";
|
|
} else {
|
|
print "ERROR: " . PHP_EOL;
|
|
var_dump(dirname($s));
|
|
var_dump(strlen($s));
|
|
}
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
OK
|
|
===DONE===
|