From: Kalle Sommer Nielsen Date: Fri, 26 Jun 2015 13:30:03 +0000 (+0200) Subject: Fixed bug #69939 (Casting object to bool returns false) X-Git-Tag: php-7.1.0alpha3~25^2~174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85bbfb191d4d9b95e5155f7b21093e38557969f2;p=php Fixed bug #69939 (Casting object to bool returns false) --- diff --git a/NEWS b/NEWS index 62107c1b40..f1577e9e45 100644 --- a/NEWS +++ b/NEWS @@ -5,8 +5,11 @@ - Core: . Fixed bug #69768 (escapeshell*() doesn't cater to !). (cmb) +- COM: + . Fixed bug #69939 (Casting object to bool returns false). (Kalle) + - PCRE: - . Fixed Bug #53823 (preg_replace: * qualifier on unicode replace garbles the + . Fixed bug #53823 (preg_replace: * qualifier on unicode replace garbles the string). (cmb) - OpenSSL: diff --git a/ext/com_dotnet/com_handlers.c b/ext/com_dotnet/com_handlers.c index ec5c70defa..ea96fe80eb 100644 --- a/ext/com_dotnet/com_handlers.c +++ b/ext/com_dotnet/com_handlers.c @@ -493,6 +493,7 @@ static int com_object_cast(zval *readobj, zval *writeobj, int type) break; case IS_FALSE: case IS_TRUE: + case _IS_BOOL: vt = VT_BOOL; break; case IS_STRING: