PageRenderTime 90ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/good/ext/standard/tests/array/compact_error.php

http://github.com/facebook/hiphop-php
PHP | 20 lines | 6 code | 5 blank | 9 comment | 0 complexity | d83915a85938a9568f8d2a6d3b9e99f3 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. /* Prototype : proto array compact(mixed var_names [, mixed ...])
  3. * Description: Creates a hash containing variables and their values
  4. * Source code: ext/standard/array.c
  5. * Alias to functions:
  6. */
  7. /*
  8. * Error -tests test compact with zero arguments.
  9. */
  10. echo "*** Testing compact() : error conditions ***\n";
  11. // Zero arguments
  12. echo "\n-- Testing compact() function with Zero arguments --\n";
  13. var_dump( compact() );
  14. echo "Done";
  15. ?>