]> granicus.if.org Git - php/commitdiff
Fix patch for bug #67436
authorBob Weinand <bobwei9@hotmail.com>
Mon, 16 Jun 2014 09:10:50 +0000 (11:10 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Mon, 16 Jun 2014 09:10:50 +0000 (11:10 +0200)
Zend/zend_compile.c

index 519227cd7a8ebb168ec5459ba5b6edec62d3dc6a..6ea3b180032259620486d3de16982ed1896f94d3 100644 (file)
@@ -3150,7 +3150,7 @@ static char * zend_get_function_declaration(zend_function *fptr TSRMLS_DC) /* {{
                                                *zv = *precv->op2.zv;
                                                zval_copy_ctor(zv);
                                                INIT_PZVAL(zv);
-                                               if (Z_TYPE_P(zv) == IS_CONSTANT) {
+                                               if ((Z_TYPE_P(zv) & IS_CONSTANT_TYPE_MASK) == IS_CONSTANT) {
                                                        REALLOC_BUF_IF_EXCEED(buf, offset, length, Z_STRLEN_P(zv));
                                                        memcpy(offset, Z_STRVAL_P(zv), Z_STRLEN_P(zv));
                                                        offset += Z_STRLEN_P(zv);
@@ -3176,7 +3176,7 @@ static char * zend_get_function_declaration(zend_function *fptr TSRMLS_DC) /* {{
                                                                *(offset++) = '.';
                                                        }
                                                        *(offset++) = '\'';
-                                               } else if (Z_TYPE_P(zv) == IS_ARRAY || Z_TYPE_P(zv) == IS_CONSTANT_ARRAY) {
+                                               } else if (Z_TYPE_P(zv) == IS_ARRAY || (Z_TYPE_P(zv) & IS_CONSTANT_TYPE_MASK) == IS_CONSTANT_ARRAY) {
                                                        memcpy(offset, "Array", 5);
                                                        offset += 5;
                                                } else {