Le 17/07/2014 06:01, Laruence a écrit :

>             $this->_prototype = unserialize(sprintf('O:%d:"%s":0:{}',
> strlen($this->name), $this->name));

>    I am not sure now.  should this usage be supported?

In think unserialize is an horrible hack which should have never be used.

This is described in UPGRADINGS

First, try to fix the code, using  newInstanceWithoutConstructor() when
available (5.4+) and possible (userland classes)

Remi.



--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to