Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/tests/lang/ |
Current File : //usr/local/src/php7/php-7.0.5/tests/lang/030.phpt |
--TEST-- $this in constructor test --FILE-- <?php class foo { function __construct($name) { $GLOBALS['List']= &$this; $this->Name = $name; $GLOBALS['List']->echoName(); } function echoName() { $GLOBALS['names'][]=$this->Name; } } function &foo2(&$foo) { return $foo; } $bar1 =new foo('constructor'); $bar1->Name = 'outside'; $bar1->echoName(); $List->echoName(); $bar1 =& foo2(new foo('constructor')); $bar1->Name = 'outside'; $bar1->echoName(); $List->echoName(); print ($names==array('constructor','outside','outside','constructor','outside','outside')) ? 'success':'failure'; ?> --EXPECT-- success
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare