Bug #75268 [Com]: SplFixedArray doesn't implement __set_state().

From: Date: Tue, 13 Feb 2018 20:43:50 +0000
Subject: Bug #75268 [Com]: SplFixedArray doesn't implement __set_state().
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213940@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75268&edit=1

 ID:                 75268
 Comment by:         carusogabriel34 at gmail dot com
 Reported by:        brad at hallnet dot co dot uk
 Summary:            SplFixedArray doesn't implement __set_state().
 Status:             Open
 Type:               Bug
 Package:            SPL related
 Operating System:   Ubuntu
 PHP Version:        7.0.23
 Block user comment: N
 Private report:     N

 New Comment:

Couldn't reproduce https://3v4l.org/QrqN0


Previous Comments:
------------------------------------------------------------------------
[2017-09-27 15:07:30] brad at hallnet dot co dot uk

Description:
------------
The SplFixedArray implementation doesn't have a __set_state() function, and as such
var_export() creates code which does not function. 

Test script:
---------------
var_export(SplFixedArray::fromArray([1,2,3]));



Expected result:
----------------
The SplFixedArray can be exported and the code functions correctly.

Actual result:
--------------
Syntax error in exported code.


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=75268&edit=1


Thread (9 messages)

« previous php.bugs (#213940) next »