]> granicus.if.org Git - php/commitdiff
compile fix
authorfoobar <sniper@php.net>
Fri, 29 Apr 2005 10:40:01 +0000 (10:40 +0000)
committerfoobar <sniper@php.net>
Fri, 29 Apr 2005 10:40:01 +0000 (10:40 +0000)
Zend/zend_object_handlers.c

index 64c2aa515e164904190d556bbfcb6fed223c6316..91faa67cfac32ec4dd13e6080449acddb406a259 100644 (file)
@@ -146,6 +146,7 @@ ZEND_API struct _zend_property_info *zend_get_property_info(zend_class_entry *ce
        zend_property_info *property_info = NULL;
        zend_property_info *scope_property_info;
        zend_bool denied_access = 0;
+       ulong h;
 
        if (Z_STRVAL_P(member)[0] == '\0') {
                if (!silent) {
@@ -157,7 +158,7 @@ ZEND_API struct _zend_property_info *zend_get_property_info(zend_class_entry *ce
                }
                return NULL;                            
        }
-       ulong h = zend_get_hash_value(Z_STRVAL_P(member), Z_STRLEN_P(member)+1);
+       h = zend_get_hash_value(Z_STRVAL_P(member), Z_STRLEN_P(member) + 1);
        if (zend_hash_quick_find(&ce->properties_info, Z_STRVAL_P(member), Z_STRLEN_P(member)+1, h, (void **) &property_info)==SUCCESS) {
                if (zend_verify_property_access(property_info, ce TSRMLS_CC)) {
                        if (property_info->flags & ZEND_ACC_CHANGED