PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/ext/standard/tests/file/bug26615.php

http://github.com/facebook/hiphop-php
PHP | 10 lines | 10 code | 0 blank | 0 comment | 3 complexity | dac3da8a78912d08018ee894b54d014b 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. <?php
  2. $out = array();
  3. $status = -1;
  4. if (substr(PHP_OS, 0, 3) != 'WIN') {
  5. exec($_ENV['TEST_PHP_EXECUTABLE'].' -n -r \'for($i=1;$i<=5000;$i++) print "$i\n";\' | tr \'\n\' \' \'', $out, $status);
  6. } else {
  7. exec($_ENV['TEST_PHP_EXECUTABLE'].' -n -r "for($i=1;$i<=5000;$i++) echo $i,\' \';"', $out, $status);
  8. }
  9. print_r($out);
  10. ?>