diff options
-rw-r--r-- | ext/standard/http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/http.c b/ext/standard/http.c index 7bf2e50c37..43e75ec7fc 100644 --- a/ext/standard/http.c +++ b/ext/standard/http.c @@ -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); } |