|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-06-26 14:17 UTC] kalle@php.net
Description: ------------ Much like Bug #69939, this is the same is true for a Variant object: var_dump((boolean) new Variant); // bool(true) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 23:00:02 2025 UTC |
It seems to me that is intended behavior. If the first parameter ($value) is ommitted a VT_EMPTY object is created, which is supposed to be treated as FALSE. The following yield TRUE, for instance: (bool) new VARIANT(1) (bool) new VARIANT("foo") (bool) new VARIANT(true)