mirror of
https://github.com/php/php-src.git
synced 2026-03-30 12:13:02 +02:00
* Zend/*: fix a bunch of typos * Zend/tests/try/try_catch_finally_005.phpt: update string length
20 lines
454 B
PHP
20 lines
454 B
PHP
--TEST--
|
|
Bug #80811: Function exec without $output but with $result_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)
|