summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/type.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/standard/type.c b/ext/standard/type.c
index 59d7314b..f53107e 100644
--- a/ext/standard/type.c
+++ b/ext/standard/type.c
@@ -186,8 +186,7 @@ PHP_FUNCTION(boolval)
return;
}
- RETVAL_ZVAL(*val, 1, 0);
- convert_to_boolean(return_value);
+ RETURN_BOOL(zend_is_true(*val));
}
/* }}} */