#29985 [Asn->Csd]: unserialize()/ __PHP_Incomplete_class does not report correctly class name

From: Date: Mon, 10 Oct 2005 19:17:45 +0000
Subject: #29985 [Asn->Csd]: unserialize()/ __PHP_Incomplete_class does not report correctly class name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-86362@lists.php.net to get a copy of this message
ID: 29985 Updated by: helly@php.net Reported By: andrey@php.net -Status: Assigned +Status: Closed Bug Type: Session related Operating System: * PHP Version: 5CVS-2005-10-06 (snap) Assigned To: helly New Comment: Thank you for your bug report. This issue has already been fixed in the latest released version of PHP, which you can download at http://www.php.net/downloads.php Probably you have a problem that is unrelated to this bug i don't know. But you definitively waste my time with thisone which is indeed fixed as your post shows too. Your result is: "...definition "bar" of the object..." This bug was: "...definition "unknown" of the object.." Previous Comments: ------------------------------------------------------------------------ [2005-10-10 15:30:48] nohn@php.net Could also reproduce that simple testcase with mod_php/Apache 1.3/Win32 mod_php/Apache 2.0/Linux (not with the latest CVS but with PHP 5.0.4 (which does not matter if it's only fixed in HEAD) ------------------------------------------------------------------------ [2005-10-10 11:38:23] sniper@php.net Marcus..? ------------------------------------------------------------------------ [2005-10-10 09:42:15] nohn@php.net Sorry, this has nothing to do with CLI. It also happens in a much more complex (mod_php) web enviroment. There is no "unknown" in my reproduction code and I can't see, what --------------------------------------------------------------------------- Fatal error: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "bar" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in C:\Dokumente und Einstellungen\nohn_s\Desktop\php5.1-win32-200510031830\test.php on line 2 --------------------------------------------------------------------------- has to do with the CLI or the causing location. ------------------------------------------------------------------------ [2005-10-09 15:36:10] helly@php.net Thank you for your bug report. This issue has already been fixed in the latest released version of PHP, which you can download at http://www.php.net/downloads.php This is fixed in all actrive branches, 4.3.*, 5.0.*, 5.1.*, HEAD. The 'Unknown' comes from cli and specifies the causing location and has nothing to do with the class name. ------------------------------------------------------------------------ [2005-10-09 15:27:25] helly@php.net I claimed fixed in CVS which is HEAD which will be 6 not any 5.* ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/29985 -- Edit this bug report at http://bugs.php.net/?id=29985&edit=1

« previous php.bugs (#86362) next »