type converters
[m6w6/ext-pq] / src / php_pq_object.c
index c471edfcf56d83a7f0bf090bfb7081d8babc6ca1..e6640def71a3dc97422bc7d5403995c75eb94644 100644 (file)
@@ -99,13 +99,6 @@ HashTable *php_pq_object_properties(zval *object TSRMLS_DC)
        return ht;
 }
 
-HashTable *php_pq_object_gc(zval *object, zval ***gc_argv, int *gc_argc TSRMLS_DC)
-{
-       *gc_argv = NULL;
-       *gc_argc = 0;
-       return NULL;
-}
-
 zend_class_entry *ancestor(zend_class_entry *ce)
 {
        while (ce->parent) {
@@ -118,7 +111,7 @@ zval *php_pq_object_read_prop(zval *object, zval *member, int type, const zend_l
 {
        php_pq_object_t *obj = zend_object_store_get_object(object TSRMLS_CC);
        php_pq_object_prophandler_t *handler;
-       zval *return_value;
+       zval *return_value = NULL;
 
        if (!obj->intern) {
                zend_error(E_WARNING, "%s not initialized", ancestor(obj->zo.ce)->name);
@@ -131,7 +124,6 @@ zval *php_pq_object_read_prop(zval *object, zval *member, int type, const zend_l
                        handler->read(object, obj, return_value TSRMLS_CC);
                } else {
                        zend_error(E_ERROR, "Cannot access %s properties by reference or array key/index", ancestor(obj->zo.ce)->name);
-                       return_value = NULL;
                }
        } else {
                return_value = zend_get_std_object_handlers()->read_property(object, member, type, key TSRMLS_CC);