mirror of
https://github.com/php/php-src.git
synced 2026-04-05 15:12:39 +02:00
Fixed test ext/standard/tests/strings/bug26817.php
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user