]> granicus.if.org Git - php/commit
Evaluate str_starts_with and str_ends_with on constants
authorTyson Andre <tysonandre775@hotmail.com>
Thu, 7 May 2020 13:14:15 +0000 (09:14 -0400)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Thu, 7 May 2020 14:24:03 +0000 (16:24 +0200)
commit9f8f84adbca9d29cf573e7b8216e60e0251bd5af
tree15afe12957fee7452628edd1cc4d85cf0db24504
parent4a512625a0b5b81094e2132fc508e167d4d08e8c
Evaluate str_starts_with and str_ends_with on constants

When both arguments are strings,
this is guaranteed not to emit notices.

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