SVN commit 794077 by moenicke: * added a warning message about unsupported classes in QStringList M +4 -2 handlers.cpp --- trunk/playground/bindings/phpqt/src/handlers.cpp #794076:794077 @@ -339,7 +339,7 @@ break; } HashTable* list_hash = HASH_OF( list ); - zval **list_iterator; + zval **list_iterator; zend_hash_internal_pointer_reset( list_hash ); while( zend_hash_has_more_elements( list_hash ) == SUCCESS ) { @@ -349,10 +349,12 @@ stringList->append( Z_STRVAL_PP( list_iterator ) ); else if ( (*list_iterator)->type == IS_OBJECT ) { smokephp_object* o = PHPQt::getSmokePHPObjectFromZval( (*list_iterator) ); - if( o->classId() == QSTRING_CLASSID ) + if( o && o->classId() == QSTRING_CLASSID ) { QString* s = reinterpret_cast< QString*> ( o->mPtr() ); stringList->append( *s ); + } else { + pqNotice() << "unsupported class " << o->className() << "in QStringList"; } } zend_hash_move_forward( list_hash );