Doc #67562 [Csd]: You indicate that NULL is a boolean type and that is wrong!
| From: | salathe@php.net | Date: | Fri, 04 Jul 2014 08:58:31 +0000 |
| Subject: | Doc #67562 [Csd]: You indicate that NULL is a boolean type and that is wrong! | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-11334@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67562&edit=1
ID: 67562
Updated by: salathe@php.net
Reported by: iam4webwork at hotmail dot com
Summary: You indicate that NULL is a boolean type and that is
wrong!
Status: Closed
Type: Documentation Problem
Package: *General Issues
PHP Version: Irrelevant
Assigned To: salathe
Block user comment: N
Private report: N
New Comment:
Oops, the system chose the wrong canned message! Thanks again for noticing this issue!
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2014-07-04 08:57:10] salathe@php.net
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2014-07-04 08:56:02] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=334107
Log: fix type for NULL constant (doc bug #67562)
------------------------------------------------------------------------
[2014-07-03 22:29:56] iam4webwork at hotmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=67562&edit=1