/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
- <?php
- /* Prototype : proto array compact(mixed var_names [, mixed ...])
- * Description: Creates a hash containing variables and their values
- * Source code: ext/standard/array.c
- * Alias to functions:
- */
- /*
- * Error -tests test compact with zero arguments.
- */
- echo "*** Testing compact() : error conditions ***\n";
- // Zero arguments
- echo "\n-- Testing compact() function with Zero arguments --\n";
- var_dump( compact() );
- echo "Done";
- ?>