Re: [PATCH] Make var_export() output "(object)array(..." instead of "stdClass::__set_state(..." for stdClass

From: Date: Wed, 15 Mar 2017 00:19:57 +0000
Subject: Re: [PATCH] Make var_export() output "(object)array(..." instead of "stdClass::__set_state(..." for stdClass
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-98529@lists.php.net to get a copy of this message
Hi! > Additionally I feel that adding methods to stdClass will muddy the waters > -- for example, this means that extending stdClass is no longer entirely > unreasonable, as you might want to do it to reuse the __set_state() > implementation. Not something I want to see happening. I'm afraid that ship has sailed long ago: https://github.com/search?q=%22extends+stdclass%22&type=Code&utf8=%E2%9C%93 -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#98529) next »