Commit:    784b4cddc6fc8170c7992d66f70438d2d4353acf
Author:    Stanislav Malyshev <s...@php.net>         Wed, 13 Jun 2012 12:01:26 
-0700
Parents:   5b3c9f4fd1fbaa251beea37ff7870f6523320672
Branches:  master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=784b4cddc6fc8170c7992d66f70438d2d4353acf

Log:
simplify boolval()

Changed paths:
  M  ext/standard/type.c


Diff:
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));
 }
 /* }}} */


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to