Skip to content

Commit e3255a4

Browse files
CJDennisnikic
authored andcommitted
Fix typo
`sizeof("data")-1` and `sizeof("date")-1` are both 4, so no change in behaviour
1 parent 175f4f2 commit e3255a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/date/php_date.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2925,7 +2925,7 @@ static int php_date_initialize_from_hash(php_date_obj **dateobj, HashTable *myht
29252925
timelib_tzinfo *tzi;
29262926
php_timezone_obj *tzobj;
29272927

2928-
z_date = zend_hash_str_find(myht, "date", sizeof("data")-1);
2928+
z_date = zend_hash_str_find(myht, "date", sizeof("date")-1);
29292929
if (z_date && Z_TYPE_P(z_date) == IS_STRING) {
29302930
z_timezone_type = zend_hash_str_find(myht, "timezone_type", sizeof("timezone_type")-1);
29312931
if (z_timezone_type && Z_TYPE_P(z_timezone_type) == IS_LONG) {

0 commit comments

Comments
 (0)