]> granicus.if.org Git - php/commit
Fixed bug #78598
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 4 Feb 2020 13:19:07 +0000 (14:19 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 7 Jul 2020 10:13:58 +0000 (12:13 +0200)
commit220880ad2d54d10173a250637478da213b1ae8e2
tree8062ba643a43dfc0b5dbab4564cf1f552041042d
parent48a247178ef54bc2452cc4409b17e1d5d7321f0d
Fixed bug #78598

When performing an RW modification of an array offset, the undefined
offset warning may call an error handler / OB callback, which may
destroy the array we're supposed to change. Detect this by temporarily
incrementing the reference count. If we find that the array has been
modified/destroyed in the meantime, we do nothing -- the execution
model here would be that the modification has happened on the destroyed
version of the array.
NEWS
Zend/tests/bug70662.phpt
Zend/tests/bug78598.phpt [new file with mode: 0644]
Zend/tests/undef_index_to_exception.phpt [new file with mode: 0644]
Zend/zend_execute.c