xref: /PHP-8.1/ext/standard/tests/strings/007.phpt (revision 3ccc0409)
1--TEST--
2php_strip_whitespace() and output buffer
3--SKIPIF--
4<?php if( substr(PHP_OS, 0, 3) == "WIN") die('skip Non windows test');?>
5--FILE--
6<?php
7$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));
8
9var_dump(php_strip_whitespace($file));
10var_dump(ob_get_contents());
11
12?>
13--EXPECTF--
14Warning: php_strip_whitespace(%s): Failed to open stream: File%Sname too long in %s007.php on line %d
15string(0) ""
16bool(false)
17