mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
75a4f484f0
When filling in defaults for skipped params, make sure that reference parameters get the expected reference wrapper.
20 lines
455 B
PHP
20 lines
455 B
PHP
--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)
|