0

I am developing a web application in PHP and MySQL.

I get some data from the database and set it into a PHP Object. When I do a var_dump() of the variable that contains the information, I see this:

    object(__PHP_Incomplete_Class)[2]
   public '__PHP_Incomplete_Class_Name' => string 'Empresa' (length=7)
   public 'IDEmpresa' => string '13' (length=2)
   public 'Nombre' => string 'Prueba' (length=6)
   ... other attributes

Why the object is "__PHP_Incomplete_Class" and what are the implications of this?

Thanks!

1
  • You'd normally expect to see this if you were unserializing a serialized object and the class hasn't yet been loaded into your script Commented May 21, 2014 at 20:15

1 Answer 1

3

It means that you've unserialized (presumably from the session) an object whose class is not defined in current runtime.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.