|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-02-15 19:07 UTC] helly@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 27 22:00:01 2025 UTC |
Description: ------------ I am using PHP5-b2 and Apache 2.0.47 with Windows XP. Apache crashes when the below code is run. Reproduce code: --------------- class Foo { private $bar = array(); function __get($var) { return(isset($this->bar[$var]) ? $this->bar[$var] : NULL); } function __set($var,$val) { $this->bar[$var] = $val; } } $foo = new Foo(); // Works // $foo->test = array('testing'=>'testing, 1...2...3...'); // Doesn't work, crashes Apache $foo->test = array(); $foo->test['testing'] = 'testing, 1...2...3...'; print_r($foo->test); Expected result: ---------------- Array ( [testing] => testing, 1...2...3... ) Actual result: -------------- Apache crashes! No output.