Created
November 18, 2010 23:20
-
-
Save shin1x1/705875 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 Foo { | |
public $value = 'abc'; | |
public function __destruct() { | |
echo(__METHOD__).PHP_EOL; | |
} | |
} | |
function func($text) { | |
echo('func start').PHP_EOL; | |
$a = unserialize($text); | |
echo('func end').PHP_EOL; | |
} | |
func('O:3:"Foo":1:{s:5:"value";s:3:"abc";}'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment