Skip to content

Commit 0663c64

Browse files
committed
Voidify php_date_interval_initialize_from_hash()
1 parent 492980c commit 0663c64

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/date/php_date.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3901,7 +3901,7 @@ PHP_METHOD(DateInterval, __construct)
39013901
}
39023902
/* }}} */
39033903

3904-
static int php_date_interval_initialize_from_hash(zval **return_value, php_interval_obj **intobj, HashTable *myht) /* {{{ */
3904+
static void php_date_interval_initialize_from_hash(zval **return_value, php_interval_obj **intobj, HashTable *myht) /* {{{ */
39053905
{
39063906
(*intobj)->diff = timelib_rel_time_ctor();
39073907

@@ -3986,8 +3986,6 @@ static int php_date_interval_initialize_from_hash(zval **return_value, php_inter
39863986
}
39873987
}
39883988
(*intobj)->initialized = 1;
3989-
3990-
return 0;
39913989
} /* }}} */
39923990

39933991
/* {{{ */

0 commit comments

Comments
 (0)