1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
--TEST--
Register Alloction 014: Register clobbering
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
--FILE--
<?php
function foo() {
for($cnt = 0; $cnt < 6; $cnt++) {
$e = $a-- + $a-- + $a *= $a;
for ($i = 0; $i <= .1; $i++);
}
}
foo();
?>
DONE
--EXPECTF--
Warning: Undefined variable $a in %sreg_alloc_014.php on line 4
Warning: Decrement on type null has no effect, this will change in the next major version of PHP in %sreg_alloc_014.php on line 4
Warning: Decrement on type null has no effect, this will change in the next major version of PHP in %sreg_alloc_014.php on line 4
DONE
|