mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
19 lines
429 B
Plaintext
19 lines
429 B
Plaintext
|
--TEST--
|
||
|
Bug #43353 wrong detection of 'data' wrapper
|
||
|
--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: No such file or directory in %s
|
||
|
bool(false)
|