Doc #67562 [NEW]: You indicate that NULL is a boolean type and that is wrong!
| From: | iam4webwork at hotmail dot com | Date: | Thu, 03 Jul 2014 22:29:56 +0000 |
| Subject: | Doc #67562 [NEW]: You indicate that NULL is a boolean type and that is wrong! | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-11332@lists.php.net to get a copy of this message | ||
From: iam4webwork at hotmail dot com
Operating system:
PHP version: Irrelevant
Package: *General Issues
Bug Type: Documentation Problem
Bug description:You indicate that NULL is a boolean type and that is wrong!
Description:
------------
---
From manual page: http://www.php.net/reserved.constants
---
NULL (boolean)
See Null.
Just look at the source code of PHP5.6 which gets it right:
http://lxr.php.net/xref/PHP_5_6/Zend/zend_constants.c#118
NULL is of type null and its value is just like its name, namely null!
It may be converted to a boolean, explicitly (bool) NULL or
automatically NULL < true
Please fix. Thank you.
--
Edit bug report at https://bugs.php.net/bug.php?id=67562&edit=1
--