bug80811.phpt 455 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #80811: Function exec without $output but with $restult_code parameter crashes
  3. --FILE--
  4. <?php
  5. echo 'Executing with all params:' . PHP_EOL;
  6. exec('echo Something', output: $output, result_code: $resultCode);
  7. var_dump($resultCode);
  8. echo 'Executing without output param:' . PHP_EOL;
  9. exec('echo Something', result_code: $resultCode);
  10. var_dump($resultCode);
  11. ?>
  12. --EXPECT--
  13. Executing with all params:
  14. int(0)
  15. Executing without output param:
  16. int(0)