php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #67562 You indicate that NULL is a boolean type and that is wrong!
Submitted: 2014-07-03 22:29 UTC Modified: 2014-07-04 08:58 UTC
From: iam4webwork at hotmail dot com Assigned: salathe (profile)
Status: Closed Package: *General Issues
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: iam4webwork at hotmail dot com
New email:
PHP Version: OS:

 

 [2014-07-03 22:29 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-04 08:56 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=334107
Log: fix type for NULL constant (doc bug #67562)
 [2014-07-04 08:57 UTC] salathe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: salathe
 [2014-07-04 08:57 UTC] 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:58 UTC] salathe@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 23:01:31 2024 UTC