summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/bug70018.phpt
blob: 77df0417a6098ab84ed4a68b4787bd00826ae470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--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) ""
}