summaryrefslogtreecommitdiff
path: root/Zend/tests/bug80811.phpt
blob: e9f6443db1374e73e3d9fbe42c86831d42f01e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #80811: Function exec without $output but with $restult_code parameter crashes
--FILE--
<?php

echo 'Executing with all params:' . PHP_EOL;
exec('echo Something', output: $output, result_code: $resultCode);
var_dump($resultCode);

echo 'Executing without output param:' . PHP_EOL;
exec('echo Something', result_code: $resultCode);
var_dump($resultCode);

?>
--EXPECT--
Executing with all params:
int(0)
Executing without output param:
int(0)