Permalink
Browse files

- MFH Coverity fix 49

  • Loading branch information...
1 parent 8bbf3a0 commit 6c89fd2d63f784b26cda99d5461a291af35baf20 Marcus Boerger committed Apr 10, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 Zend/zend_interfaces.c
@@ -287,7 +287,7 @@ static zend_object_iterator *zend_user_it_get_new_iterator(zend_class_entry *ce,
if (!ce || !ce_it || !ce_it->get_iterator || (ce_it->get_iterator == zend_user_it_get_new_iterator && iterator == object)) {
if (!EG(exception))
{
- zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Objects returned by %s::getIterator() must be traversable or implement interface Iterator", ce->name);
+ zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Objects returned by %s::getIterator() must be traversable or implement interface Iterator", ce ? ce->name : Z_OBJCE_P(object)->name);
}
if (iterator)
{

0 comments on commit 6c89fd2

Please sign in to comment.