Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foo bar foo bar
- ---------------------
- <?php
- require_once '/usr/include/php/nette/Nette/loader.php';
- Nette\Diagnostics\Debugger::enable();
- Nette\Diagnostics\Debugger::$strictMode = TRUE;
- class Foo
- {
- public function __construct()
- {
- echo " foo ";
- }
- }
- class Bar extends Foo
- {
- public function __construct()
- {
- parent::__construct();
- echo " bar ";
- }
- public function fix()
- {
- $this->__construct();
- }
- }
- $bar = new Bar();
- $bar->fix(); // expected " foo bar foo bar
- echo "<hr>"; highlight_file(__FILE__);
Advertisement
Add Comment
Please, Sign In to add comment