--TEST-- exec, system, passthru — Basic command execution functions --SKIPIF-- --FILE-- getMessage() . \PHP_EOL; } try { var_dump(system($cmd, $output)); } catch (\ValueError $e) { echo $e->getMessage() . \PHP_EOL; } try { var_dump(passthru($cmd, $output)); } catch (\ValueError $e) { echo $e->getMessage() . \PHP_EOL; } ?> --EXPECT-- string(3) "abc" abc string(3) "abc" abc NULL