mirror of
https://github.com/php/php-src.git
synced 2024-12-20 23:39:46 +08:00
22 lines
399 B
PHP
22 lines
399 B
PHP
--TEST--
|
|
Ensure "undefined offset" notice formats message corectly when undefined key is negative
|
|
--FILE--
|
|
<?php
|
|
|
|
[][-1];
|
|
[][-1.1];
|
|
(new ArrayObject)[-1];
|
|
(new ArrayObject)[-1.1];
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Notice: Undefined offset: -1 in %s on line 3
|
|
|
|
Notice: Undefined offset: -1 in %s on line 4
|
|
|
|
Notice: Undefined offset: -1 in %s on line 5
|
|
|
|
Notice: Undefined offset: -1 in %s on line 6
|
|
Done
|