1--TEST--
2Test dirname() function : regression with path normalization
3--SKIPIF--
4<?php
5if(substr(PHP_OS, 0, 3) != "WIN")
6  die("skip Only valid for Windows");
7?>
8--FILE--
9<?php
10
11$s = '/php_sanity/sanity.php?';
12while (dirname($s) == "/php_sanity" && strlen($s) < 10000) {
13	$s .= str_repeat('X', 250);
14}
15
16if (strlen($s) >= 10000) {
17	echo "OK\n";
18} else {
19	print "ERROR: " . PHP_EOL;
20	var_dump(dirname($s));
21	var_dump(strlen($s));
22}
23?>
24===DONE===
25--EXPECT--
26OK
27===DONE===
28