summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2012-06-13 19:01:26 (GMT)
committerStanislav Malyshev <stas@php.net>2012-06-13 19:03:36 (GMT)
commit784b4cddc6fc8170c7992d66f70438d2d4353acf (patch)
treee07f2fb351933fdc64cb9a797ed28ff39fa6e396 /ext
parent5b3c9f4fd1fbaa251beea37ff7870f6523320672 (diff)
downloadphp-784b4cddc6fc8170c7992d66f70438d2d4353acf.tar.gz
simplify boolval()
Diffstat (limited to 'ext')
-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));
}
/* }}} */