Skip to content

Commit d45ad56

Browse files
committed
use optimized FOREACH
1 parent 7db065a commit d45ad56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/share.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ PHP_FUNCTION(curl_share_init_persistent)
237237

238238
// Apply the options property to the handle. We avoid using $share_opts as zval_get_long may not necessarily return
239239
// the same value as it did in the initial ZEND_HASH_FOREACH_VAL above.
240-
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&share_opts_prop), share_opts_entry) {
240+
ZEND_HASH_PACKED_FOREACH_VAL(Z_ARRVAL_P(&share_opts_prop), share_opts_entry) {
241241
CURLSHcode curlsh_error = curl_share_setopt(sh->share, CURLSHOPT_SHARE, Z_LVAL_P(share_opts_entry));
242242

243243
if (curlsh_error != CURLSHE_OK) {

0 commit comments

Comments
 (0)