예제 #1
0
<?php

function __autoload($name)
{
    var_dump($name);
    class TestA
    {
        public static $D;
    }
}
TestA::$D = 1;
예제 #2
0
파일: 1882.php 프로젝트: badlamer/hhvm
<?php

class TestA
{
    protected static function doSomething()
    {
        echo "TestA::doSomething\n";
    }
    protected static function test()
    {
        static::doSomething();
    }
    public static function nativeTest($obj)
    {
        $obj->bar();
        self::test();
    }
}
class Foo
{
    public function bar()
    {
    }
}
$obj = new Foo();
TestA::nativeTest($obj);
예제 #3
0
파일: find.php 프로젝트: jisqyv/eclim
<?php

include '../models.php';
$testA = new TestA();
$testA->methodA2();
$testA->variable1;
functionA();
echo CONSTANT1;
예제 #4
0
파일: lsb_005.php 프로젝트: badlamer/hhvm
        TestB::test();
        echo get_class(new static()) . "\n";
        TestC::test();
        echo get_class(new static()) . "\n";
        TestBB::test();
        echo get_class(new static()) . "\n";
    }
}
class TestB
{
    public static function test()
    {
        echo get_class(new static()) . "\n";
        TestC::test();
        echo get_class(new static()) . "\n";
    }
}
class TestC
{
    public static function test()
    {
        echo get_class(new static()) . "\n";
    }
}
class TestBB extends TestB
{
}
TestA::test();
?>
==DONE==