PageRenderTime 44ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/ext_process/exec.php

http://github.com/facebook/hiphop-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
  1. <?hh <<__EntryPoint>> function main(): void {
  2. $result = null;
  3. $ret = -1;
  4. exec('/bin/echo -n -e "line1\x0Cmoreline1\r\nline2\x0C"', inout $result, inout $ret);
  5. $content = implode($result,"\n");
  6. var_dump(bin2hex($content));
  7. }