Hi Laruence,
On Thu, Jul 17, 2014 at 1:01 PM, Laruence <[email protected]> wrote:
> /**
> * Creates a new instance of the mapped class, without invoking
> the constructor.
> *
> * @return object
> */
> public function newInstance()
> {
> if ($this->_prototype === null) {
> $this->_prototype = unserialize(sprintf('O:%d:"%s":0:{}',
> strlen($this->name), $this->name));
> }
>
> return clone $this->_prototype;
> }
>
Just curious.
This code is trying to initialize object with __wakeup() method
rather than __construct(). Do you know what kind of object is initialized?
What's the reason why it needs to use __wakeup() or avoid __construct()?
If the usage is valid, we may try to find solutions.
Regards,
--
Yasuo Ohgaki
[email protected]