php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: info-phpbug at ch2o dot info
New email:
PHP Version: OS:

 

 [2017-10-05 00:24 UTC] info-phpbug at ch2o dot info
Description:
------------
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 :
- https://github.com/php/php-src/pull/2810 for PHP-7.0 branch
- https://github.com/php/php-src/pull/2808 for master branch 
- https://github.com/php/php-src/pull/2807 for PHP-7.1 branch


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-05 10:27 UTC] nikic@php.net
Automatic comment on behalf of mcarbonneaux@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=6b9ccda936bb863f9c9830f0aebef672a405a786
Log: Fixed bug #75311
 [2017-10-05 10:27 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC