1--TEST-- 2Bug #70018 (exec does not strip all whitespace) 3--FILE-- 4<?php 5$output = array(); 6 7$test_fl = __DIR__ . DIRECTORY_SEPARATOR . md5(uniqid()); 8file_put_contents($test_fl, '<?php echo "abc\f\n \n";'); 9 10exec(PHP_BINARY . " -n $test_fl", $output); 11 12var_dump($output); 13 14@unlink($test_fl); 15?> 16--EXPECT-- 17array(2) { 18 [0]=> 19 string(3) "abc" 20 [1]=> 21 string(0) "" 22} 23