]> granicus.if.org Git - php/commitdiff
Unused function in HEAD, fixes compiler warning
authorGwynne Raskind <gwynne@php.net>
Mon, 10 Mar 2008 14:35:37 +0000 (14:35 +0000)
committerGwynne Raskind <gwynne@php.net>
Mon, 10 Mar 2008 14:35:37 +0000 (14:35 +0000)
ext/pdo/pdo_dbh.c

index 56ad91cd334f6867cf4cc2110c66a188803504c9..4d92bd676d4273fba5cb28fe59f12994db689470 100755 (executable)
@@ -1293,11 +1293,13 @@ static int dbh_compare(zval *object1, zval *object2 TSRMLS_DC)
        return -1;
 }
 
+#if PHP_MAJOR_VERSION < 6
 static zend_object_value dbh_ze1_clone_obj(zval *object TSRMLS_DC)
 {
        php_error(E_ERROR, "Cannot clone object of class %s due to 'zend.ze1_compatibility_mode'", Z_OBJCE_P(object)->name);
        return object->value.obj;
 }
+#endif
 
 static zend_object_handlers pdo_dbh_object_handlers;
 #if PHP_MAJOR_VERSION < 6