[Kde-bindings] KDE/kdebindings/php/phpqt/src

Thomas Moenicke tm at php-qt.org
Sun Jul 13 17:57:12 UTC 2008


SVN commit 831963 by moenicke:

* adjusted refcounting for PHP 5.3, again

CCMAIL: kde-bindings at kde.org



 M  +5 -4      marshall_basetypes.h  


--- trunk/KDE/kdebindings/php/phpqt/src/marshall_basetypes.h #831962:831963
@@ -23,6 +23,7 @@
 #include "marshall_types.h"
 #include "pDebug.h"
 #include "context.h"
+#include "config.h"
 
 template <class T> T* smoke_ptr(Marshall *m) { return (T*) m->item().s_voidp; }
 
@@ -158,7 +159,7 @@
 		PHPQt::unmapSmokePHPObject( m->var() );
 		PHPQt::unmapSmokePHPObject( o );
 		delete o;
-		m->var()->refcount = 0;
+		m->var()->refcount__GC = 0;
 	}
 	return;
 }
@@ -191,8 +192,8 @@
     	m->var()->value.obj.handle = o->handle();
     	m->var()->value.obj.handlers = &php_qt_handler;
     	m->var()->type = IS_OBJECT;
-    	m->var()->refcount = 2;
-    	m->var()->is_ref = 0;
+    	m->var()->refcount__GC = 2;
+    	m->var()->is_ref__GC = 0;
 
     	o->setZvalPtr( m->var() );
 //    	PHPQt::setSmokePHPObject( o );
@@ -241,7 +242,7 @@
     	o->setAllocated(true);
     
     if( Context::callType() == Context::VirtualMethodCall )
-        m->var()->refcount = 1;
+        m->var()->refcount__GC = 1;
     
 } // marshall_to_php
 



More information about the Kde-bindings mailing list