2007-05-10 16:28:11 +00:00
|
|
|
--TEST--
|
|
|
|
php_strip_whitespace() and output buffer
|
2008-08-21 11:01:55 +00:00
|
|
|
--SKIPIF--
|
|
|
|
<?php if( substr(PHP_OS, 0, 3) == "WIN") die('skip Non windows test');?>
|
2008-03-24 10:09:41 +00:00
|
|
|
--INI--
|
|
|
|
log_errors_max_len=4096
|
2007-05-10 16:28:11 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2008-08-21 11:01:55 +00:00
|
|
|
$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));
|
2007-05-10 16:28:11 +00:00
|
|
|
|
|
|
|
var_dump(php_strip_whitespace($file));
|
|
|
|
var_dump(ob_get_contents());
|
|
|
|
|
|
|
|
?>
|
2008-03-16 21:06:55 +00:00
|
|
|
===DONE===
|
2007-05-10 16:28:11 +00:00
|
|
|
--EXPECTF--
|
2008-08-21 11:01:55 +00:00
|
|
|
Warning: php_strip_whitespace(%s): failed to open stream: File name too long in %s007.php on line %d
|
2007-05-10 16:28:11 +00:00
|
|
|
string(0) ""
|
|
|
|
bool(false)
|
2008-03-16 21:06:55 +00:00
|
|
|
===DONE===
|