|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75311 error: 'zend_hash_key' has no member named 'arKey' in apache2handler
Submitted: 2017-10-05 00:24 UTC Modified: -
From: info-phpbug at ch2o dot info Assigned:
Status: Closed Package: Compile Failure
PHP Version: master-Git-2017-10-04 (Git) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: info-phpbug at ch2o dot info
New email:
PHP Version: OS:


 [2017-10-05 00:24 UTC] info-phpbug at ch2o dot info
when compile on v7.x branch they stop with the next error: 
'zend_hash_key' has no member named 'arKey' in sapi/apache2handler/apache_config.c

arkey has been removed from zend_hash_key and replaced by key...

has to change arkey by key, but not only, beceause key ar now zend_string, they must use ZSTR_VAL to retreive the "char*" of the string.

they bug are in 7.0, 7.1 and master branch...

--- php-7.0.24/sapi/apache2handler/apache_config.c      2017-10-05 01:21:53.998969000 +0200
+++ php-src/sapi/apache2handler/apache_config.c 2017-10-05 01:56:42.624035000 +0200
@@ -128,7 +128,7 @@

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

        ZEND_HASH_FOREACH_STR_KEY_PTR(&d->config, str, data) {
-               phpapdebug((stderr, "APPLYING (%s)(%s)\n", ZSTR_VAL(str), data->value));
+               phpapdebug((stderr, "APPLYING (%s)(%s)\n", 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"));

i've done 3 pullrequest on github :
- for PHP-7.0 branch
- for master branch 
- for PHP-7.1 branch


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-05 10:27 UTC]
Automatic comment on behalf of
Log: Fixed bug #75311
 [2017-10-05 10:27 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Nov 28 02:03:13 2021 UTC