Hi Tjerk,
your commit broke the code that worked fine before (still works in 5.5 but
broken in 5.6 and above).
It leads into infinity recursion until stack overflow.
It must be fixed or reverted.
Thanks. Dmitry.
<?php
class Parameters extends ArrayObject {
public function __construct(array $values = null) {
if (null === $values) {
$values = array();
}
parent::__construct($values, ArrayObject::ARRAY_AS_PROPS);
}
public function offsetGet($name) {
if (isset($this[$name])) {
return parent::offsetGet($name);
}
return null;
}
}
$x = new Parameters();
var_dump($x['foo']);
$x['foo'] = 'bar';
var_dump($x['foo']);
?>