Commits

Ruslan Osmanov  committed 5723f61

Add: get_gc handler

  • Participants
  • Parent commits 7da635c

Comments (0)

Files changed (1)

 /* }}} */
 #endif
 
+static HashTable *get_gc(zval *object, zval ***table, int *n TSRMLS_DC)
+{
+	*table = NULL;
+	*n = 0;
+	return zend_std_get_properties(object TSRMLS_CC);
+}
+
+
 #define PHP_EVENT_ADD_CLASS_PROPERTIES(a, b)                                           \
 {                                                                                      \
     int i = 0;                                                                         \
 #if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 4
 	object_handlers.get_properties       = get_properties;
 #endif
+	object_handlers.get_gc               = get_gc;
 
 	zend_hash_init(&classes, 8, NULL, NULL, 1);
 	register_classes(TSRMLS_C);