Last active
June 26, 2019 12:42
-
-
Save AliN11/cf753f9b5b828be74f142f85ed06762c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Sun | |
{ | |
// ... | |
private function __sleep() {} | |
private function __wakeup() {} | |
}; | |
$sun = new Sun; | |
$serialized = serialize($sun); // PHP Warning: ... cannot access private method Sun::__sleep() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment