mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Fixed test ext/standard/tests/strings/bug26817.php
This commit is contained in:
parent
5db2503fc0
commit
915a8a2d42
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
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);
|
ZVAL_STRINGL(&member, prop_name, prop_name_len);
|
||||||
property_info = zend_get_property_info_quick(zobj->ce, &member, 1, NULL TSRMLS_CC);
|
property_info = zend_get_property_info_quick(zobj->ce, &member, 1, NULL TSRMLS_CC);
|
||||||
|
zval_dtor(&member);
|
||||||
if (!property_info) {
|
if (!property_info) {
|
||||||
return FAILURE;
|
return FAILURE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,7 +141,7 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
|
||||||
/* Skip these types */
|
/* Skip these types */
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
if (formstr->s->len) {
|
if (formstr->s) {
|
||||||
smart_str_appendl(formstr, arg_sep, arg_sep_len);
|
smart_str_appendl(formstr, arg_sep, arg_sep_len);
|
||||||
}
|
}
|
||||||
/* Simple key=value */
|
/* Simple key=value */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue