com php-src: Fixed comments: Zend/zend_execute.c
| From: | Dmitry Stogov | Date: | Fri, 20 Mar 2015 14:26:38 +0000 |
| Subject: | com php-src: Fixed comments: Zend/zend_execute.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85677@lists.php.net to get a copy of this message | ||
Commit: 66f16c6cfbc31767f4d804a6d94159be22a7a892
Author: Dmitry Stogov <dmitry@zend.com> Fri, 20 Mar 2015 17:26:38 +0300
Parents: 7cf05ce8dadd84db9f39d68ae97dbed5ca769fbb
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=66f16c6cfbc31767f4d804a6d94159be22a7a892
Log:
Fixed comments
Changed paths:
M Zend/zend_execute.c
Diff:
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index b98d7ce..41c211c 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -703,12 +703,12 @@ static zend_bool zend_verify_weak_scalar_type_hint(zend_uchar type_hint, zval
*a
static zend_bool zend_verify_scalar_type_hint(zend_uchar type_hint, zval *arg, zend_bool strict)
{
if (UNEXPECTED(strict)) {
- /* SSTH Exception: IS_LONG ma be accepted instead as IS_DOUBLE */
+ /* SSTH Exception: IS_LONG ma be accepted as IS_DOUBLE (converted) */
if (type_hint != IS_DOUBLE || Z_TYPE_P(arg) != IS_LONG) {
return 0;
}
} else if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL)) {
- /* FIXME: Is this exception on purpose ??? */
+ /* NULL may be accepted only by nullable hints (this is already checked) */
return 0;
}
return zend_verify_weak_scalar_type_hint(type_hint, arg);