forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-5.5: improved the fix for bug #66395 updated NEWS Fixed bug #66009 Failed compilation of PHP extension with C++ std library using VS 2012
- Loading branch information
Showing
2 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
ext/standard/tests/file/basename_bug66395_variation2-win32.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--TEST-- | ||
basename bug #66395 check drive traversing and NTFS streams | ||
--SKIPIF-- | ||
<?php if (substr(PHP_OS, 0, 3) != 'WIN') { die('skip Windows only basename tests'); } ?> | ||
--FILE-- | ||
<?php | ||
echo basename("y:") . "\n"; | ||
echo basename("y:/") . "\n"; | ||
echo basename("notdriveletter:file.txt") . "\n"; | ||
echo basename("a:\\b:c:d:hello.txt\\hcd:c.txt") . "\n"; | ||
echo basename("a:b:c:d:hello.txt\\d:some.txt") . "\n"; | ||
echo basename("a:b:c:d:hello\world\a.bmp\c:d:e:f.txt") . "\n"; | ||
echo basename("a:\\b:\\c:d:hello\\world\\a.bmp\\d:e:f:g.txt") . "\n"; | ||
echo basename("a:\\b:\\c:d:hello/world\\a.bmp\\d:\\e:\\f:g.txt") . "\n"; | ||
echo basename("a:\\b:/c:d:hello\\world:somestream") . "\n"; | ||
echo basename("a:\\b:\\c:d:hello\\world:some.stream") . "\n"; | ||
echo basename("a:/b:\\c:d:hello\\world:some.stream:\$DATA") . "\n"; | ||
echo basename("x:y:z:hello\world:my.stream:\$DATA") . "\n"; | ||
echo basename("a:\\b:\\c:d:hello\\world:c:\$DATA") . "\n"; | ||
?> | ||
==DONE== | ||
--EXPECTF-- | ||
y | ||
y | ||
notdriveletter:file.txt | ||
hcd:c.txt | ||
some.txt | ||
f.txt | ||
g.txt | ||
g.txt | ||
world:somestream | ||
world:some.stream | ||
world:some.stream:$DATA | ||
world:my.stream:$DATA | ||
world:c:$DATA | ||
==DONE== |