note 106472 added to class.reflectionclass
| From: | Anonymous at osu1 dot php dot net | Date: | Fri, 11 Nov 2011 17:58:16 +0000 |
| Subject: | note 106472 added to class.reflectionclass | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184399@lists.php.net to get a copy of this message | ||
Unserialized reflection class cause error.
<?php
/**
* abc
*/
class a{}
$ref = new ReflectionClass('a');
$ref = unserialize(serialize($ref));
var_dump($ref);
var_dump($ref->getDocComment());
// object(ReflectionClass)#2 (1) {
// ["name"]=>
// string(1) "a"
// }
// PHP Fatal error: ReflectionClass::getDocComment(): Internal error: Failed to retrieve the
reflection object
----
Server IP: 219.94.145.73
Probable Submitter: 219.111.2.116
----
Manual Page -- http://www.php.net/manual/en/class.reflectionclass.php
Edit -- https://master.php.net/note/edit/106472
Del: integrated -- https://master.php.net/note/delete/106472/integrated
Del: useless -- https://master.php.net/note/delete/106472/useless
Del: bad code -- https://master.php.net/note/delete/106472/bad+code
Del: spam -- https://master.php.net/note/delete/106472/spam
Del: non-english -- https://master.php.net/note/delete/106472/non-english
Del: in docs -- https://master.php.net/note/delete/106472/in+docs
Del: other reasons-- https://master.php.net/note/delete/106472
Reject -- https://master.php.net/note/reject/106472
Search -- https://master.php.net/manage/user-notes.php