summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bindings/php5/php_code.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bindings/php5/php_code.py b/bindings/php5/php_code.py
index 4758c1bd..0eab9c19 100644
--- a/bindings/php5/php_code.py
+++ b/bindings/php5/php_code.py
@@ -30,8 +30,7 @@ class PhpCode:
self.fd = fd
def is_object(self, t):
- return t not in ['char*', 'const char*', 'gchar*', 'const gchar*', 'GList*', 'GHashTable*',
- 'xmlNode*', 'int', 'gint', 'gboolean', 'const gboolean'] + self.binding_data.enums
+ return is_object(t) and not is_int(t, self.binding_data)
def generate(self):
self.generate_header()