- var_dump: documentation ( source)
- unserialize: documentation ( source)
- error_reporting: documentation ( source)
- debug_print_backtrace: documentation ( source)
<?php
error_reporting(E_ERROR);
class MyClass
{
function __toString()
{
debug_print_backtrace();
die("[!] __toString triggered!");
}
}
var_dump(unserialize('O:8:"DateTime":1:{s:4:"date";O:7:"MyClass":0:{}}'));