/hphp/test/slow/ext_process/exec.php
PHP | 7 lines | 7 code | 0 blank | 0 comment | 0 complexity | ccedaa63978aff478f9c1903ed93c871 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh <<__EntryPoint>> function main(): void {
- $result = null;
- $ret = -1;
- exec('/bin/echo -n -e "line1\x0Cmoreline1\r\nline2\x0C"', inout $result, inout $ret);
- $content = implode($result,"\n");
- var_dump(bin2hex($content));
- }