<?php
//error_reporting(-1);
class test
{
public $a = 123;
public $b = 222;
public $c = 641;
static function php_error_handler ($errno, $errstr, $errfile, $errline, $vars) {
//throw new Exception ("\n\n".'['.$errno.'] '.$errstr.' ('.strtr ($errfile, '\\', '/').', '.$errline.')'."\n\n");
echo $errno;
echo "\n";
}
echo $errstr;
echo "\n";
}
echo $errfile;
echo "\n";
}
echo $errline;
echo "\n";
}
echo "\n";
}
}
public function cry() {
echo $this->a;
echo "\n";
}
public function summ($a, $b) {
return $a + $b;
} else {
return $this->a + $this->b;
}
}
}
$z = new test();
$z->cry();
$z->a = 100;
$z->cry();
$x = $z->summ(0,0);
$y = $z->summ(3, 4);
error;
PD9waHAKLy9lcnJvcl9yZXBvcnRpbmcoLTEpOwplcnJvcl9yZXBvcnRpbmcgKEVfQUxMIHwgRV9TVFJJQ1QpOwpzZXRfZXJyb3JfaGFuZGxlciAoJ3Rlc3Q6OnBocF9lcnJvcl9oYW5kbGVyJyk7CgoKCmNsYXNzIHRlc3QKewoJcHVibGljICRhID0gMTIzOwoJcHVibGljICRiID0gMjIyOwoJcHVibGljICRjID0gNjQxOwoJCglzdGF0aWMgZnVuY3Rpb24gcGhwX2Vycm9yX2hhbmRsZXIgKCRlcnJubywgJGVycnN0ciwgJGVycmZpbGUsICRlcnJsaW5lLCAkdmFycykgewoJICAgIC8vdGhyb3cgbmV3IEV4Y2VwdGlvbiAoIlxuXG4iLidbJy4kZXJybm8uJ10gJy4kZXJyc3RyLicgKCcuc3RydHIgKCRlcnJmaWxlLCAnXFwnLCAnLycpLicsICcuJGVycmxpbmUuJyknLiJcblxuIik7CgkJCgkJaWYgKCFlbXB0eSgkZXJybm8pKSB7CgkJCWVjaG8gJGVycm5vOwoJCQllY2hvICJcbiI7CgkJfQoJCWlmICghZW1wdHkoJGVycnN0cikpIHsKCQkJZWNobyAkZXJyc3RyOwoJCQllY2hvICJcbiI7CgkJfQoJCWlmICghZW1wdHkoJGVycmZpbGUpKSB7CgkJCWVjaG8gJGV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