1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| <?php
error_reporting(0); class baby{ public $var; public $var2; public $var3;
public function learn($key){ echo file_get_contents(__DIR__.$key); }
public function getAge(){ return $this->var2->var3; }
public function __isset($var){ $this->learn($var); }
public function __invoke(){ return $this->learn($this->var); }
public function __wakeup(){ $this->getAge(); } }
class young{ public $var;
public function __toString(){ return ($this->var)(); } }
class old{ public $var;
public function __get($key){ return "Okay, you get the key, but we send you ".$this->var; } }
if(isset($_GET['age'])){ @unserialize($_GET['age']); } else{ highlight_file(__FILE__); } ?>
|