From 85bbfb191d4d9b95e5155f7b21093e38557969f2 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Fri, 26 Jun 2015 15:30:03 +0200 Subject: [PATCH] Fixed bug #69939 (Casting object to bool returns false) --- NEWS | 5 ++++- ext/com_dotnet/com_handlers.c | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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: -- 2.50.1