cvs: php4 /ext/standard/tests/general_functions 005.phpt

From: Date: Mon, 18 Dec 2000 21:24:26 +0000
Subject: cvs: php4 /ext/standard/tests/general_functions 005.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3205@lists.php.net to get a copy of this message
zak Mon Dec 18 13:24:26 2000 EDT Added files: /php4/ext/standard/tests/general_functions 005.phpt Log: Adding test for is_scalar(). Index: php4/ext/standard/tests/general_functions/005.phpt +++ php4/ext/standard/tests/general_functions/005.phpt --TEST-- is_scalar() function test --POST-- --GET-- --FILE-- <?php class foo {} var_dump (is_scalar (TRUE)); var_dump (is_scalar (1)); var_dump (is_scalar (1.0)); var_dump (is_scalar ("Hi!")); var_dump (is_scalar (NULL)); var_dump (is_scalar (array ())); var_dump (is_scalar (new foo())); var_dump (is_scalar (opendir('.'))); ?> --EXPECT-- bool(true) bool(true) bool(true) bool(true) bool(false) bool(false) bool(false) bool(false)

« previous php.cvs (#3205) next »