- 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:
Pierre Joye 2008-08-21 11:01:35 +00:00
parent 10f187e7ff
commit e3a0de9e45
2 changed files with 22 additions and 0 deletions

View 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===

View File

@ -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--