[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/bindings/phpqt/src
From: Thomas Moenicke <tm () php-qt ! org>
Date: 2008-04-06 13:39:17
Message-ID: 1207489157.728415.28824.nullmailer () svn ! kde ! org
[Download RAW message or body]
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 );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic