Re: An BC issue in unserialize

From: Date: Thu, 17 Jul 2014 05:09:29 +0000
Subject: Re: An BC issue in unserialize
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-75635@lists.php.net to get a copy of this message
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.

« previous php.internals (#75635) next »