]> granicus.if.org Git - php/commit
Do constant evaluation for str_contains in opcache
authorTyson Andre <tysonandre775@hotmail.com>
Sun, 29 Mar 2020 21:42:11 +0000 (17:42 -0400)
committerTyson Andre <tysonandre775@hotmail.com>
Mon, 30 Mar 2020 13:54:38 +0000 (09:54 -0400)
commit47ddd95836142a5bea28abab26999e72d5f85493
treeed875ff2470b90d2bff4a3cac76c8ad2807dface
parentbb6523693cbb3c8cc0cb5fbba0f2f75a1a7523e2
Do constant evaluation for str_contains in opcache

Both arguments must be strings.
str_contains deliberately does not emit a warning for an empty needle.

Closes GH-5324
ext/opcache/Optimizer/sccp.c