1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00
Files
archived-php-src/ext/standard/tests/general_functions/bug70018.phpt
T
Peter Kokot 6426420f61 Merge branch 'PHP-7.4'
* PHP-7.4:
  Replace dirname(__FILE__) by __DIR__ in tests
2019-03-15 23:36:47 +01:00

23 lines
368 B
PHP

--TEST--
Bug #70018 (exec does not strip all whitespace)
--FILE--
<?php
$output = array();
$test_fl = __DIR__ . DIRECTORY_SEPARATOR . md5(uniqid());
file_put_contents($test_fl, '<?php echo "abc\f\n \n";');
exec(PHP_BINARY . " -n $test_fl", $output);
var_dump($output);
@unlink($test_fl);
?>
--EXPECT--
array(2) {
[0]=>
string(3) "abc"
[1]=>
string(0) ""
}