Bug #75311 [Opn->Csd]: error: 'zend_hash_key' has no member named 'arKey' in apache2handler

From: Date: Thu, 05 Oct 2017 10:27:14 +0000
Subject: Bug #75311 [Opn->Csd]: error: 'zend_hash_key' has no member named 'arKey' in apache2handler
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211522@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75311&edit=1 ID: 75311 Updated by: nikic@php.net Reported by: info-phpbug at ch2o dot info Summary: error: 'zend_hash_key' has no member named 'arKey' in apache2handler -Status: Open +Status: Closed Type: Bug Package: Compile Failure Operating System: Linux PHP Version: master-Git-2017-10-04 (Git) Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2017-10-05 00:24:51] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75311&edit=1

« previous php.bugs (#211522) next »