|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2016-02-11 22:13 UTC] francois@php.net
-Assigned To:
+Assigned To: francois
[2016-02-12 08:53 UTC] salsi at icosaedro dot it
[2016-02-14 12:21 UTC] nikic@php.net
[2016-02-14 12:21 UTC] nikic@php.net
-Status: Assigned
+Status: Closed
[2016-04-18 09:29 UTC] bwoebi@php.net
[2016-07-20 11:33 UTC] davey@php.net
[2016-09-14 11:10 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 20:00:01 2025 UTC |
Description: ------------ When assigning to a string offset from an empty string, the corresponding byte is set to a null value. In zend_assign_to_string_offset(), the length of the input string should be checked. If 0, a warning should be raised and the string shouldn't be modified. Test script: --------------- $str = "abc"; $str{0} = ""; var_dump($str); Expected result: ---------------- PHP Fatal error: Uncaught Error: Cannot assign an empty string to a string offset in ... Actual result: -------------- string(3) "bc" (read as "\0bc")