PageRenderTime 52ms CodeModel.GetById 30ms app.highlight 0ms RepoModel.GetById 20ms 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
 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/*
 9 * Error -tests test compact with zero arguments.
10 */
11
12echo "*** Testing compact() : error conditions ***\n";
13
14// Zero arguments
15echo "\n-- Testing compact() function with Zero arguments --\n";
16var_dump( compact() );
17
18
19echo "Done";
20?>