]> granicus.if.org Git - php/commit
Fix opcache return type for get_headers in zend_func_info
authorTyson Andre <tysonandre775@hotmail.com>
Fri, 13 Sep 2019 18:09:15 +0000 (14:09 -0400)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 17 Sep 2019 10:08:29 +0000 (12:08 +0200)
commit29bced9521762ed935810b54a25cb74a09e25957
tree6bc1397840aee2cac566c19b9baead237b0acfb1
parent2f6efd835d794222d42196ae51fa8294f9b9a992
Fix opcache return type for get_headers in zend_func_info

https://www.php.net/manual/en/function.get-headers.php#refsect1-function.get-headers-examples
shows that it will return string keys when the second argument is
non-zero. I've verified that this is the case.

This bug was there since the initial commit in c88ffa9a567.

Closes GH-4702.
ext/opcache/Optimizer/zend_func_info.c