- var_dump: documentation ( source)
<?php
//ini_set('unserialize_callback_func', 'phpinfo');
class cm404 {
public $str = '';
function __construct() {
if (isset($_GET['ryat'])) {
exit;
}
unset($_GET);
}
function __destruct() {
_get();
}
}
function _get() {
global $obj;
//if(!is_object($obj)) {
// $obj = new cm404();
//}
echo "hi, $_GET[hi]\n";
var_dump($obj);
}
$_GET['ryat'] = 1;
$_GET['hi'] = 'ryat';
$obj = new cm404();