com php-src: Merge branch 'PHP-7.1': ext/standard/array.c ext/standard/type.c
| From: | Andrea Faulds | Date: | Sun, 11 Sep 2016 21:46:48 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.1': ext/standard/array.c ext/standard/type.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94429@lists.php.net to get a copy of this message | ||
Commit: 695176458f0b039cd601ea2c7ca006f59efbc56a
Author: Andrea Faulds <ajf@ajf.me> Sun, 11 Sep 2016 22:46:48 +0100
Parents: 7b21230663f453c413bcafa80270e1cb51e7c880 fc5497cb923df43e20deff3e03d1bfa50acc0570
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=695176458f0b039cd601ea2c7ca006f59efbc56a
Log:
Merge branch 'PHP-7.1'
Changed paths:
MM ext/standard/array.c
MM ext/standard/type.c
Diff:
diff --cc ext/standard/type.c
index 4e91b99,60884da..88a1501
--- a/ext/standard/type.c
+++ b/ext/standard/type.c
@@@ -208,16 -205,15 +196,9 @@@ static inline void php_is_type(INTERNAL
ZEND_PARSE_PARAMETERS_START(1, 1)
Z_PARAM_ZVAL_DEREF(arg)
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
- #endif
if (Z_TYPE_P(arg) == type) {
- if (type == IS_OBJECT) {
- zend_class_entry *ce = Z_OBJCE_P(arg);
- if (ZSTR_LEN(ce->name) == sizeof(INCOMPLETE_CLASS) - 1
- && !memcmp(ZSTR_VAL(ce->name), INCOMPLETE_CLASS, sizeof(INCOMPLETE_CLASS) - 1)) {
- RETURN_FALSE;
- }
- } else if (type == IS_RESOURCE) {
+ if (type == IS_RESOURCE) {
const char *type_name = zend_rsrc_list_get_rsrc_type(Z_RES_P(arg));
if (!type_name) {
RETURN_FALSE;