php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #28950 Clearer (bool)"false" = true
Submitted: 2004-06-28 19:38 UTC Modified: 2004-06-29 10:27 UTC
From: foxyshadis1 at dslextreme dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.7 OS: Win2000
Private report: No CVE-ID: None
 [2004-06-28 19:38 UTC] foxyshadis1 at dslextreme dot com
Description:
------------
Docs should make explicit that (bool)"false" is true, not false - it's easy to miss while reading through the boolean section. (I was under the impression that if ints and strings could be coerced to each other, it made sense that bools and strings could be, but obviously not.)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-28 20:10 UTC] nlopess@php.net
I think there is no point in documenting this...

We have a "Type Juggling" page at: http://www.php.net/manual/en/language.types.type-juggling.php
 [2004-06-29 08:55 UTC] derick@php.net
I don't agree, this should also appear on the http://www.php.net/manual/en/language.types.boolean.php page.

Derick
 [2004-06-29 10:27 UTC] vrana@php.net
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.

There is an exact list of values converted to false with the note that everything else is converted to true. Although I added an example for this case.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 17:01:27 2024 UTC