mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
19 lines
485 B
PHP
19 lines
485 B
PHP
--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--
|
|
<?php
|
|
$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));
|
|
|
|
var_dump(php_strip_whitespace($file));
|
|
var_dump(ob_get_contents());
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: php_strip_whitespace(%s): Failed to open stream: File%Sname too long in %s007.php on line %d
|
|
string(0) ""
|
|
bool(false)
|