Guest User

Untitled

a guest
Jul 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2. set_error_handler('error_debug_handler');
  3.  
  4. function error_debug_handler($errno, $errstr, $errfile, $errline, $context, $backtrace = null) { }
  5.  
  6. session_set_save_handler(
  7. array('s', 'open'),
  8. array('s', 'close'),
  9. array('s', 'read'),
  10. array('s', 'write'),
  11. array('s', 'destroy'),
  12. array('s', 'gc')
  13. );
  14.  
  15. class s
  16. {
  17. function open() {}
  18. function close() {}
  19. function read() {}
  20. function write() {}
  21. function destroy() {}
  22. function gc() {}
  23. }
  24.  
  25. session_start();
  26. $a = new a();
  27. $a->b();
  28.  
  29. class a
  30. {
  31. function b()
  32. {
  33. die('b');
  34. }
  35. }
Add Comment
Please, Sign In to add comment