2011/6/2 Rune Kaagaard <rumi...@gmail.com>: >> this conversion should never happen and throw a fatal error since this >> action is destructive to data and never useful nor will warnings/notices >> helps in the real world > > Unlike i.e. Python its really not the PHP way to go fatal on the > developer during weird type conversions. I'm also +1 on the E_NOTICE.
Indeed, an error is really not appropriate here as this is seldom used in some very specific case (like testing php with phpt tests): To test the method offsetGet(), an echo is made with the call to the method and the parameters. That way we see in the expected part that we are calling it with offsetGet(Array,anIndex)... function offsetGet($index) { echo __METHOD__ . "($this->element, $index)\n"; return isset($this->element[$index]) ? $this->element[$index] : NULL; } -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php