mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

This is now "bug compatible" with the normal behavior, and more imporantly, does not crash :)
15 lines
232 B
PHP
15 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";
|