]> granicus.if.org Git - php/commit
Fix bug in opcache flags for mysqli_get_charset
authorTyson Andre <tysonandre775@hotmail.com>
Sun, 9 Jun 2019 20:35:34 +0000 (16:35 -0400)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 11 Jun 2019 13:39:59 +0000 (15:39 +0200)
commit7350e808c539ac284b81904730bde11a96b0ab01
treebd0c9d1ef1864c24ed8c25182b6541fd42fb4059
parentbcf20963c10ffdb8d0cf3adafcf440a3e6d6484c
Fix bug in opcache flags for mysqli_get_charset

https://www.php.net/manual/en/mysqli.get-charset.php
tests/mysqli_field_seek.phpt has a test of this returning an object.

Looking at the source in ext/mysqli/mysqli_nonapi.c,
this should be object|null, not array|null

This might actually cause bugs in opcache's inferences,
(no proof of this)
so it might make sense to pull this patch into an earlier minor version.
ext/opcache/Optimizer/zend_func_info.c