|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-22 06:25 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Description: ------------ When extending HttpMessage and having an array property I run into "PHP Fatal error: Cannot access HttpMessage properties by reference or array key/index" Reproduce code: --------------- <?php class ChildMessage extends HttpMessage { public $properties = array(); } $child = new ChildMessage; $child->properties['foo'] = 'bar'; ?> Expected result: ---------------- ChildMessage::$properties['foo'] to equal 'bar' Actual result: -------------- PHP Fatal error: Cannot access HttpMessage properties by reference or array key/index in /home/hodsdon/bug.php on line 11