php-src/Zend/tests/list_006.phpt
Nikita Popov c48b745f00 Promote "undefined array key" notice to warning
This implements the last remaining part of the
https://wiki.php.net/rfc/engine_warnings RFC.

Closes GH-5927.
2020-08-03 14:40:50 +02:00

13 lines
223 B
PHP

--TEST--
Testing nested list() with empty array
--FILE--
<?php
list($a, list($b, list(list($d)))) = array();
?>
--EXPECTF--
Warning: Undefined array key 0 in %s on line %d
Warning: Undefined array key 1 in %s on line %d