Bug #75311 [NEW]: error: 'zend_hash_key' has no member named 'arKey' in apache2handler

From: Date: Thu, 05 Oct 2017 00:24:59 +0000
Subject: Bug #75311 [NEW]: error: 'zend_hash_key' has no member named 'arKey' in apache2handler
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211512@lists.php.net to get a copy of this message
From: info-phpbug at ch2o dot info Operating system: Linux PHP version: master-Git-2017-10-04 (Git) Package: Compile Failure Bug Type: Bug Bug description:error: 'zend_hash_key' has no member named 'arKey' in apache2handler 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 bug report at https://bugs.php.net/bug.php?id=75311&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75311&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75311&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75311&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75311&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75311&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75311&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75311&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75311&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75311&r=support Expected behavior: https://bugs.php.net/fix.php?id=75311&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75311&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75311&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75311&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75311&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75311&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75311&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75311&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75311&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75311&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75311&r=mysqlcfg

« previous php.bugs (#211512) next »