]> granicus.if.org Git - php/commitdiff
Fix C++ style declaration
authorZeev Suraski <zeev@php.net>
Tue, 6 Jan 2004 20:38:00 +0000 (20:38 +0000)
committerZeev Suraski <zeev@php.net>
Tue, 6 Jan 2004 20:38:00 +0000 (20:38 +0000)
ext/standard/http.c

index 7bf2e50c3714d40c665a5a5ba4ed80001a5542bb..43e75ec7fc2d59f33c1b2690942961a26af457c7 100644 (file)
@@ -62,12 +62,13 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
        
                /* handling for private & protected object properties */
                if (*key == '\0' && type != NULL) {
+                       char *tmp;
+
                        zend_object *zobj = zend_objects_get_address(type TSRMLS_CC);
                        if (zend_check_property_access(zobj, key TSRMLS_CC) != SUCCESS) {
                                /* private or protected property access outside of the class */
                                continue;
                        }
-                       char *tmp;
                        zend_unmangle_property_name(key, &tmp, &key);
                        key_len = strlen(key);          
                }