|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-17 19:27 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Jan 21 21:00:02 2026 UTC |
Description: ------------ standard windows php 4.3.9 apache 2 handler globals off. Assigning reference to class variable in overloaded class constructor/any method. Reproduce code: --------------- <?php # php 4.3.9 , apache 2.0.52 class containerClass { var $data; function containerClass(&$data) { $this->data =& $data; } function __set($prop_name, $prop_value) { return true; } } overload("containerClass"); $contentObject = new stdclass; $containerObject = new containerClass($contentObject); ?> Expected result: ---------------- blank page :D --- actually "fixed" the problem with using global directive, but it still seems to be a bug. So enjoy. Actual result: -------------- Fatal error: Cannot create references to/from string offsets nor overloaded objects in C:\Program Files\Apache Group\Apache2\htdocs\itabi\dev\kala.php on line 8