]> granicus.if.org Git - php/commitdiff
- Return the warning until we check if we can change the type of str.len
authorAndi Gutmans <andi@php.net>
Tue, 28 Sep 2004 19:46:57 +0000 (19:46 +0000)
committerAndi Gutmans <andi@php.net>
Tue, 28 Sep 2004 19:46:57 +0000 (19:46 +0000)
Zend/zend_execute_API.c

index 03994e7035eb9477d1ef6e61bcafffd2469ae549..45d585f5965c72900ac70a97af692f84d4930128 100644 (file)
@@ -479,7 +479,7 @@ ZEND_API int zval_update_constant(zval **pp, void *arg TSRMLS_DC)
                                continue;
                        }
 
-                       if (const_value.type == IS_STRING && (uint)const_value.value.str.len == str_index_len-1 &&
+                       if (const_value.type == IS_STRING && const_value.value.str.len == str_index_len-1 &&
                           !strncmp(const_value.value.str.val, str_index, str_index_len)) {
                                /* constant value is the same as its name */
                                zval_dtor(&const_value);