From:             [EMAIL PROTECTED]
Operating system: 
PHP version:      4CVS-2002-11-20 (dev)
PHP Bug Type:     Scripting Engine problem
Bug description:  is_scalar(NULL) should be true

NULL is a type with a discrete set of values.  The is_scalar function
should return TRUE when passed NULL.

<?
  if(is_scalar(NULL))
    print("NULL is a scalar\n");
  if(is_scalar($a)) 
    print("an unset variable is a scalar\n");
?>
-- 
Edit bug report at http://bugs.php.net/?id=20530&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20530&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20530&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20530&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20530&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20530&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20530&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20530&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20530&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20530&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20530&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20530&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20530&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20530&r=isapi

Reply via email to