Skip to content

Commit

Permalink
Fixed bug #75311
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu CARBONNEAUX authored and nikic committed Oct 5, 2017
1 parent 1195de8 commit 6b9ccda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ PHP NEWS
. Fixed bug #75290 (debug info of Closures of internal functions contain
garbage argument names). (Andrea)

- Apache2Handler:
. Fixed bug #75311 (error: 'zend_hash_key' has no member named 'arKey' in
apache2handler). (mcarbonneaux)

- OCI8:
. Fixed incorrect reference counting. (Dmitry, Tianfang Yang)

Expand Down
4 changes: 2 additions & 2 deletions sapi/apache2handler/apache_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static zend_bool should_overwrite_per_dir_entry(HashTable *target_ht, zval *zv,

if (new_per_dir_entry->status >= orig_per_dir_entry->status) {
/* use new entry */
phpapdebug((stderr, "ADDING/OVERWRITING %s (%d vs. %d)\n", hash_key->arKey, new_per_dir_entry->status, orig_per_dir_entry->status));
phpapdebug((stderr, "ADDING/OVERWRITING %s (%d vs. %d)\n", ZSTR_VAL(hash_key->key), new_per_dir_entry->status, orig_per_dir_entry->status));
return 1;
} else {
return 0;
Expand Down Expand Up @@ -176,7 +176,7 @@ void apply_config(void *dummy)
php_dir_entry *data;

ZEND_HASH_FOREACH_STR_KEY_PTR(&d->config, str, data) {
phpapdebug((stderr, "APPLYING (%s)(%s)\n", str, data->value));
phpapdebug((stderr, "APPLYING (%s)(%s)\n", ZSTR_VAL(str), data->value));
if (zend_alter_ini_entry_chars(str, data->value, data->value_len, data->status, data->htaccess?PHP_INI_STAGE_HTACCESS:PHP_INI_STAGE_ACTIVATE) == FAILURE) {
phpapdebug((stderr, "..FAILED\n"));
}
Expand Down

0 comments on commit 6b9ccda

Please sign in to comment.