/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

  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. ?>