diff options
author | Stanislav Malyshev <stas@php.net> | 2012-06-13 19:01:26 (GMT) |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2012-06-13 19:03:36 (GMT) |
commit | 784b4cddc6fc8170c7992d66f70438d2d4353acf (patch) | |
tree | e07f2fb351933fdc64cb9a797ed28ff39fa6e396 | |
parent | 5b3c9f4fd1fbaa251beea37ff7870f6523320672 (diff) | |
download | php-784b4cddc6fc8170c7992d66f70438d2d4353acf.tar.gz |
simplify boolval()
-rw-r--r-- | ext/standard/type.c | 3 |
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)); } /* }}} */ |