@@ -2072,11 +2072,6 @@ static zend_function *dbstmt_method_get(zend_object **object_pp, zend_string *me
2072
2072
return fbc ;
2073
2073
}
2074
2074
2075
- static int dbstmt_compare (zval * object1 , zval * object2 )
2076
- {
2077
- return ZEND_UNCOMPARABLE ;
2078
- }
2079
-
2080
2075
zend_object_handlers pdo_dbstmt_object_handlers ;
2081
2076
zend_object_handlers pdo_row_object_handlers ;
2082
2077
@@ -2474,11 +2469,6 @@ static zend_string *row_get_classname(const zend_object *object)
2474
2469
return zend_string_init ("PDORow" , sizeof ("PDORow" ) - 1 , 0 );
2475
2470
}
2476
2471
2477
- static int row_compare (zval * object1 , zval * object2 )
2478
- {
2479
- return ZEND_UNCOMPARABLE ;
2480
- }
2481
-
2482
2472
void pdo_row_free_storage (zend_object * std )
2483
2473
{
2484
2474
pdo_row_t * row = (pdo_row_t * )std ;
@@ -2512,7 +2502,7 @@ void pdo_stmt_init(void)
2512
2502
pdo_dbstmt_object_handlers .write_property = dbstmt_prop_write ;
2513
2503
pdo_dbstmt_object_handlers .unset_property = dbstmt_prop_delete ;
2514
2504
pdo_dbstmt_object_handlers .get_method = dbstmt_method_get ;
2515
- pdo_dbstmt_object_handlers .compare = dbstmt_compare ;
2505
+ pdo_dbstmt_object_handlers .compare = zend_objects_not_comparable ;
2516
2506
pdo_dbstmt_object_handlers .clone_obj = NULL ;
2517
2507
2518
2508
pdo_row_ce = register_class_PDORow ();
@@ -2536,5 +2526,5 @@ void pdo_stmt_init(void)
2536
2526
pdo_row_object_handlers .get_method = row_method_get ;
2537
2527
pdo_row_object_handlers .get_constructor = row_get_ctor ;
2538
2528
pdo_row_object_handlers .get_class_name = row_get_classname ;
2539
- pdo_row_object_handlers .compare = row_compare ;
2529
+ pdo_row_object_handlers .compare = zend_objects_not_comparable ;
2540
2530
}
0 commit comments