History log of /PHP-8.2/Zend/tests/unset_non_array.phpt (Results 1 – 3 of 3)
Revision Date Author Comments
# a38bad87 20-Oct-2021 Nikita Popov

Consolidate UNSET_DIM handling for string offset error

The immediate error here is the nested indexing in write context,
the fact that it's ultimately wrapped in an unset() doesn't matte

Consolidate UNSET_DIM handling for string offset error

The immediate error here is the nested indexing in write context,
the fact that it's ultimately wrapped in an unset() doesn't matter.
Same as $str[0][0] += 1 will throw "Cannot use string offset as an
array", so should this case.

show more ...


# 052af90b 09-Jun-2021 Kamil Tekiela

Deprecate autovivification on false

Deprecate automatically converting "false" into an empty array
on write operands. Autovivification continues to be supported
for "null" values, as

Deprecate autovivification on false

Deprecate automatically converting "false" into an empty array
on write operands. Autovivification continues to be supported
for "null" values, as well as undefined/uninitialized values.

RFC: https://wiki.php.net/rfc/autovivification_false

Closes GH-7131.

Co-authored-by: Tyson Andre <tysonandre775@hotmail.com>
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>

show more ...


# b6421387 15-Jun-2021 Nikita Popov

Fix missing error for single index unset on wrong type

The error was correctly thrown for a nested index, but not for a
single index. Make sure both have the same behavior.