PageRenderTime 38ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/Zend/tests/generators/func_get_args.php

http://github.com/facebook/hiphop-php
PHP | 11 lines | 8 code | 3 blank | 0 comment | 0 complexity | 6f4b1851e5ef2871ce18e5fef9bff7d7 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. function gen() {
  3. var_dump(func_get_args());
  4. yield; // trigger generator
  5. }
  6. $gen = gen("foo", "bar");
  7. $gen->rewind();
  8. ?>