forcing access to __PHP_Incomplete_Class object properties

前端 未结 8 1876
夕颜
夕颜 2020-11-30 06:43

I\'m writing a module for a php cms. In a function (a callback) I can access an object that comes from the framework code.

This object is of type __PHP_Incomp

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 06:59

    None of the above answers actually worked for me, except this solution:

    $object = unserialize(serialize($object));

    $object->function();

    Hope it helps someone

提交回复
热议问题