New version of debug_zval_dump_b.phpt, is_array.phpt, is_null.phpt, is_string.phpt, debug_zval_dump_e.phpt, is_bool.phpt, is_numeric.phpt, print_r.phpt, debug_zval_dump_o.phpt, is_float.phpt is_object.phpt, strval.phpt,
debug_zval_dump_v.phpt, is_int.phpt, is_scalar.phpt, var_dump.phpt
2007-05-12 10:28:00 +00:00
|
|
|
--TEST--
|
|
|
|
Test debug_zval_dump() function : error conditions
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
/* Prototype: void debug_zval_dump ( mixed $variable );
|
|
|
|
Description: Dumps a string representation of an internal zend value
|
|
|
|
to output.
|
|
|
|
*/
|
|
|
|
|
|
|
|
echo "*** Testing error conditions ***\n";
|
|
|
|
|
|
|
|
/* passing zero argument */
|
|
|
|
debug_zval_dump();
|
|
|
|
|
|
|
|
echo "Done\n";
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
--EXPECTF--
|
|
|
|
*** Testing error conditions ***
|
|
|
|
|
2008-06-20 18:05:45 +00:00
|
|
|
Warning: debug_zval_dump() expects at least %d parameter, %d given in %s on line %d
|
New version of debug_zval_dump_b.phpt, is_array.phpt, is_null.phpt, is_string.phpt, debug_zval_dump_e.phpt, is_bool.phpt, is_numeric.phpt, print_r.phpt, debug_zval_dump_o.phpt, is_float.phpt is_object.phpt, strval.phpt,
debug_zval_dump_v.phpt, is_int.phpt, is_scalar.phpt, var_dump.phpt
2007-05-12 10:28:00 +00:00
|
|
|
Done
|