mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
d8696f9216
* Add behavioural tests for incdec operators * Add support to ++/-- for objects castable to _IS_NUMBER * Add str_increment() function * Add str_decrement() function RFC: https://wiki.php.net/rfc/saner-inc-dec-operators Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com> Co-authored-by: Arnaud Le Blanc <arnaud.lb@gmail.com>
17 lines
350 B
PHP
17 lines
350 B
PHP
--TEST--
|
|
Regression test for incorrect update of pi node users when removing a predecessor block
|
|
--FILE--
|
|
<?php
|
|
|
|
function test() {
|
|
for (; $n--; )
|
|
C;
|
|
}
|
|
test();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Undefined variable $n in %s on line %d
|
|
|
|
Warning: Decrement on type null has no effect, this will change in the next major version of PHP in %s on line %d
|