xref: /PHP-8.3/Zend/tests/bug80811.phpt (revision 75a4f484)
1--TEST--
2Bug #80811: Function exec without $output but with $restult_code parameter crashes
3--FILE--
4<?php
5
6echo 'Executing with all params:' . PHP_EOL;
7exec('echo Something', output: $output, result_code: $resultCode);
8var_dump($resultCode);
9
10echo 'Executing without output param:' . PHP_EOL;
11exec('echo Something', result_code: $resultCode);
12var_dump($resultCode);
13
14?>
15--EXPECT--
16Executing with all params:
17int(0)
18Executing without output param:
19int(0)
20