yiisoft / yii2-elasticsearch

Yii 2 Elasticsearch extension
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
427 stars 253 forks source link

The new curlOptions in 2.1.4 does not work #330

Closed HagnMarkus closed 1 year ago

HagnMarkus commented 1 year ago

What steps will reproduce the problem?

Use the new curlOptions option, e.g.

$curlOptions = [
    CURLOPT_SSL_VERIFYPEER => false
]

What's expected?

array_merge merges the normal options with curlOptions

What do you get instead?

Yes, it will merge. But all the keys are renumbered! All CURLOPT-entries are invalid!

Additional info

The + operator will preserve the keys

Q A
Yii version 2.0.47 (yii2-elasticsearch: 2.1.4)
PHP version 7.4.30
Operating system Windows 10