#48016 [NEW]: stdClass::__setState is not defined although var_export() uses it

From: Date: Sun, 19 Apr 2009 12:51:06 +0000
Subject: #48016 [NEW]: stdClass::__setState is not defined although var_export() uses it
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-135966@lists.php.net to get a copy of this message
From:             c dot r1 at gmx dot de
Operating system: Linux
PHP version:      5.2.9
PHP Bug Type:     Class/Object related
Bug description:  stdClass::__setState is not defined although var_export() uses it

Description:
------------
var_export() for an object which is just used for storing properties and
is of stdClass produces invalid code as stdClass::__setState is not
implemented, for no appearant reason. It would be nice to have an
implementation of this in 5.3.0, and, if possible, a workaround for earlier
versions of php.


-- 
Edit bug report at http://bugs.php.net/?id=48016&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        http://bugs.php.net/fix.php?id=48016&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        http://bugs.php.net/fix.php?id=48016&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        http://bugs.php.net/fix.php?id=48016&r=trysnapshot60
Fixed in CVS:                        http://bugs.php.net/fix.php?id=48016&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48016&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=48016&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=48016&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=48016&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=48016&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=48016&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=48016&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=48016&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=48016&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=48016&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48016&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48016&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=48016&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=48016&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=48016&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=48016&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=48016&r=mysqlcfg



Thread (7 messages)

« previous php.bugs (#135966) next »