/hphp/test/zend/good/ext/standard/tests/array/compact_error.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
- <?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";
- ?>