Bug #69845 [Opn->Csd]: ArrayObject with ARRAY_AS_PROPS broken

From: Date: Tue, 16 Jun 2015 07:54:37 +0000
Subject: Bug #69845 [Opn->Csd]: ArrayObject with ARRAY_AS_PROPS broken
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193541@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69845&edit=1 ID: 69845 Updated by: dmitry@php.net Reported by: dmifedorenko at gmail dot com Summary: ArrayObject with ARRAY_AS_PROPS broken -Status: Open +Status: Closed Type: Bug Package: Class/Object related Operating System: Linux vm 3.13.0-37-generic #64-U PHP Version: 7.0Git-2015-06-16 (Git) Block user comment: N Private report: N New Comment: Automatic comment on behalf of dmitry@zend.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=6ae375db31605e13c05c4c9b985898f8e3e4b61c Log: Fixed bug #69845 (ArrayObject with ARRAY_AS_PROPS broken) Previous Comments: ------------------------------------------------------------------------ [2015-06-16 05:22:08] dmifedorenko at gmail dot com Description: ------------ Seems like ArrayObject with ARRAY_AS_PROPS implementation broken. After second call of constructor I cant get access to the array property. Test script: --------------- for ($i = 0; $i<2; $i++) { $data = new \ArrayObject(new stdClass(), ArrayObject::ARRAY_AS_PROPS); $data->itemType = 'bulletin'; var_dump(!is_null($data['itemType'])); } exit; Expected result: ---------------- bool(true) bool(true) Actual result: -------------- bool(true) bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69845&edit=1

« previous php.bugs (#193541) next »