php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #20339 Magic functions __wakeup & __sleep
Submitted: 2002-11-10 09:07 UTC Modified: 2005-08-11 19:39 UTC
From: M dot A dot Dahlhaus at t-online dot de Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.3.0-pre2 OS: all
Private report: No CVE-ID: None
 [2002-11-10 09:07 UTC] M dot A dot Dahlhaus at t-online dot de
this is not a bug post ...
it's a request for a feature ...

wuldn't it be much nicer in extended classes,
when serialize and unserialize calling the magic functions of booth classes ( the base and the derived class in the right order ) ?

i think this wuld giv the classes a much cleaner outfit ;o) 

M.A.Dahlhaus

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-11 19:39 UTC] nlopess@php.net
Already implemented (PHP 5). Documented here: http://php.net/language.oop5.magic
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 16:01:33 2025 UTC