@@ -394,20 +394,38 @@ static zend_function_entry php_driver_bigint_methods[] = {
394394static php_driver_value_handlers php_driver_bigint_handlers ;
395395
396396static HashTable *
397- php_driver_bigint_gc (zval * object , php5to7_zval_gc table , int * n TSRMLS_DC )
397+ php_driver_bigint_gc (
398+ #if PHP_VERSION_ID >= 80000
399+ zend_object * object ,
400+ #else
401+ zval * object ,
402+ #endif
403+ php5to7_zval_gc table , int * n TSRMLS_DC )
398404{
399405 * table = NULL ;
400406 * n = 0 ;
401407 return zend_std_get_properties (object TSRMLS_CC );
402408}
403409
404410static HashTable *
405- php_driver_bigint_properties (zval * object TSRMLS_DC )
411+ php_driver_bigint_properties (
412+ #if PHP_VERSION_ID >= 80000
413+ zend_object * object TSRMLS_DC
414+ #else
415+ zval * object TSRMLS_DC
416+ #endif
417+ )
406418{
407419 php5to7_zval type ;
408420 php5to7_zval value ;
409421
410- php_driver_numeric * self = PHP_DRIVER_GET_NUMERIC (object );
422+ php_driver_numeric * self = PHP_DRIVER_GET_NUMERIC (
423+ #if PHP_VERSION_ID >= 80000
424+ (zval * ) object
425+ #else
426+ object
427+ #endif
428+ );
411429 HashTable * props = zend_std_get_properties (object TSRMLS_CC );
412430
413431 type = php_driver_type_scalar (CASS_VALUE_TYPE_BIGINT TSRMLS_CC );
@@ -448,9 +466,21 @@ php_driver_bigint_hash_value(zval *obj TSRMLS_DC)
448466}
449467
450468static int
451- php_driver_bigint_cast (zval * object , zval * retval , int type TSRMLS_DC )
469+ php_driver_bigint_cast (
470+ #if PHP_VERSION_ID >= 80000
471+ zend_object * object ,
472+ #else
473+ zval * object ,
474+ #endif
475+ zval * retval , int type TSRMLS_DC )
452476{
453- php_driver_numeric * self = PHP_DRIVER_GET_NUMERIC (object );
477+ php_driver_numeric * self = PHP_DRIVER_GET_NUMERIC (
478+ #if PHP_VERSION_ID >= 80000
479+ (zval * ) object
480+ #else
481+ object
482+ #endif
483+ );
454484
455485 switch (type ) {
456486 case IS_LONG :
@@ -501,8 +531,8 @@ void php_driver_define_Bigint(TSRMLS_D)
501531#if PHP_VERSION_ID >= 50400
502532 php_driver_bigint_handlers .std .get_gc = php_driver_bigint_gc ;
503533#endif
504- php_driver_bigint_handlers .std .compare_objects = php_driver_bigint_compare ;
505- php_driver_bigint_handlers .std .cast_object = php_driver_bigint_cast ;
534+ php_driver_bigint_handlers .std .compare = php_driver_bigint_compare ;
535+ php_driver_bigint_handlers .std .cast_object = php_driver_bigint_cast ;
506536
507537 php_driver_bigint_handlers .hash_value = php_driver_bigint_hash_value ;
508538 php_driver_bigint_handlers .std .clone_obj = NULL ;
0 commit comments