mirror of
https://github.com/php/php-src.git
synced 2025-01-10 04:54:47 +08:00
- add win32 version
This commit is contained in:
parent
d0afbfb509
commit
3a5edf568e
23
ext/standard/tests/file/bug43353-win32.phpt
Normal file
23
ext/standard/tests/file/bug43353-win32.phpt
Normal file
@ -0,0 +1,23 @@
|
||||
--TEST--
|
||||
Bug #43353 wrong detection of 'data' wrapper
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if(substr(PHP_OS, 0, 3) != "WIN")
|
||||
die("skip Run only on Windows");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
var_dump(is_dir('file:///datafoo:test'));
|
||||
var_dump(is_dir('datafoo:test'));
|
||||
var_dump(file_get_contents('data:text/plain,foo'));
|
||||
var_dump(file_get_contents('datafoo:text/plain,foo'));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
bool(false)
|
||||
bool(false)
|
||||
string(3) "foo"
|
||||
|
||||
Warning: file_get_contents(datafoo:text/plain,foo): failed to open stream: Invalid argument in %s
|
||||
bool(false)
|
@ -1,5 +1,10 @@
|
||||
--TEST--
|
||||
Bug #43353 wrong detection of 'data' wrapper
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if(substr(PHP_OS, 0, 3) == "WIN")
|
||||
die("skip on Windows");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user