diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 33bd74ef7f5..8a461ff21fd 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -368,6 +368,7 @@ ZEND_API int zend_check_property_access(zend_object *zobj, zend_string *prop_inf zend_unmangle_property_name_ex(prop_info_name->val, prop_info_name->len, &class_name, &prop_name, &prop_name_len); ZVAL_STRINGL(&member, prop_name, prop_name_len); property_info = zend_get_property_info_quick(zobj->ce, &member, 1, NULL TSRMLS_CC); + zval_dtor(&member); if (!property_info) { return FAILURE; } diff --git a/ext/standard/http.c b/ext/standard/http.c index 5fe9112076b..cceaa48aa6e 100644 --- a/ext/standard/http.c +++ b/ext/standard/http.c @@ -141,7 +141,7 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr, /* Skip these types */ continue; } else { - if (formstr->s->len) { + if (formstr->s) { smart_str_appendl(formstr, arg_sep, arg_sep_len); } /* Simple key=value */