]> granicus.if.org Git - php/commitdiff
Add warning and convert to exception in string offset assignment:
authorGeorge Peter Banyard <girgias@php.net>
Tue, 7 Jan 2020 21:55:43 +0000 (22:55 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Tue, 7 Jan 2020 21:55:43 +0000 (22:55 +0100)
Convert the empty string assignment to an Error as per RFC [1]
Add a warning that only the first byte will be assigned to the offset if provided
a needle that is longer than one byte.

[1] https://wiki.php.net/rfc/engine_warnings

Closes GH-5063


Trivial merge