trying to understand offsetExists function in Zend/Registry.php -
public function offsetexists($index) { return array_key_exists($index, $this); }
this taken zend/registry.php, question is: $this
current object, right? here seems array? $this
mean here?
you'll notice zend_registry
extends arrayobject
. allows used like array.
further reading - http://php.net/manual/en/class.arrayobject.php
the reason zend_registry
overrides arrayobject::offsetexists()
due bug - https://bugs.php.net/bug.php?id=40442
Comments
Post a Comment