From: myle34 at hotmail dot com
Operating system: Windows XP
PHP version: 5CVS-2003-10-31 (dev)
PHP Bug Type: Reproducible crash
Bug description: Call to __set() crashes Apache when setting array element!

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...';


Expected result:
[testing] => testing, 1...2...3...

Actual result:
Apache crashes! No output.

Edit bug report at [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]
Floating point limitations: [url][/url]