mirror of
https://github.com/php/php-src.git
synced 2024-09-27 12:57:26 +00:00
- skip 007 on non windows platform and add a win specific version (file not found instead of filename too long)
This commit is contained in:
parent
10f187e7ff
commit
e3a0de9e45
20
ext/standard/tests/strings/007-win32.phpt
Normal file
20
ext/standard/tests/strings/007-win32.phpt
Normal file
@ -0,0 +1,20 @@
|
||||
--TEST--
|
||||
php_strip_whitespace() and output buffer
|
||||
--SKIPIF--
|
||||
<?php if( substr(PHP_OS, 0, 3) != "WIN") die('skip Windows only test');?>
|
||||
--INI--
|
||||
log_errors_max_len=4096
|
||||
--FILE--
|
||||
<?php
|
||||
$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));
|
||||
|
||||
var_dump(php_strip_whitespace($file));
|
||||
var_dump(ob_get_contents());
|
||||
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECTF--
|
||||
Warning: php_strip_whitespace(%s): failed to open stream: No such file or directory in %s on line %d
|
||||
string(0) ""
|
||||
bool(false)
|
||||
===DONE===
|
@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
php_strip_whitespace() and output buffer
|
||||
--SKIPIF--
|
||||
<?php if( substr(PHP_OS, 0, 3) == "WIN") die('skip Non windows test');?>
|
||||
--INI--
|
||||
log_errors_max_len=4096
|
||||
--FILE--
|
||||
|
Loading…
Reference in New Issue
Block a user