summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/dirname_no_path_normalization-win32.phpt
blob: 283834e8ce21b30ff5e713c81f99db733371dce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--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===