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()); 8$test_fl_escaped = escapeshellarg($test_fl); 9file_put_contents($test_fl, '<?php echo "abc\f\n \n";'); 10 11exec(getenv('TEST_PHP_EXECUTABLE_ESCAPED') . " -n $test_fl_escaped", $output); 12 13var_dump($output); 14 15@unlink($test_fl); 16?> 17--EXPECT-- 18array(2) { 19 [0]=> 20 string(3) "abc" 21 [1]=> 22 string(0) "" 23} 24