mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Added test
This commit is contained in:
parent
b80d30d821
commit
71d6501346
29
ext/opcache/tests/jit/assign_dim_006.phpt
Normal file
29
ext/opcache/tests/jit/assign_dim_006.phpt
Normal file
@ -0,0 +1,29 @@
|
||||
--TEST--
|
||||
JIT ASSIGN_DIM: 006
|
||||
--INI--
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.file_update_protection=0
|
||||
opcache.jit_buffer_size=1M
|
||||
--FILE--
|
||||
<?php
|
||||
function foo($s) {
|
||||
$s = "123";
|
||||
for($i = 0; $i < 5; $i++) {
|
||||
$x = $s[-5] = "x";
|
||||
}
|
||||
var_dump($x);
|
||||
}
|
||||
foo("123");
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
|
||||
|
||||
Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
|
||||
|
||||
Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
|
||||
|
||||
Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
|
||||
|
||||
Warning: Illegal string offset -5 in %sassign_dim_006.php on line 5
|
||||
NULL
|
Loading…
Reference in New Issue
Block a user