mirror of
https://github.com/php/php-src.git
synced 2025-01-07 11:34:09 +08:00
670fe594b9
This is now "bug compatible" with the normal behavior, and more imporantly, does not crash :)
16 lines
232 B
PHP
16 lines
232 B
PHP
<?php
|
|
class Foo {
|
|
public static function test() {
|
|
static $i = 0;
|
|
var_dump(++$i);
|
|
}
|
|
}
|
|
|
|
|
|
Foo::test();
|
|
eval("class Bar extends Foo {}"); // Avoid early binding.
|
|
Foo::test();
|
|
Bar::test();
|
|
Bar::test();
|
|
echo "\n";
|