diff options
author | CJDennis <CJDennis@users.noreply.github.com> | 2019-09-18 20:03:24 +1000 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-19 11:36:00 +0200 |
commit | e3255a4f49f32e5fd936b9de4e77b594d1d4015a (patch) | |
tree | 08a32f1fbf868754b907b3aba7603c8d4a735697 /ext/date/php_date.c | |
parent | 175f4f24ae9f8600556c1352429b1bb49f8616ba (diff) | |
download | php-git-e3255a4f49f32e5fd936b9de4e77b594d1d4015a.tar.gz |
Fix typo
`sizeof("data")-1` and `sizeof("date")-1` are both 4, so no change in behaviour
Diffstat (limited to 'ext/date/php_date.c')
-rw-r--r-- | ext/date/php_date.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 9ad4427897..0bde543032 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -2925,7 +2925,7 @@ static int php_date_initialize_from_hash(php_date_obj **dateobj, HashTable *myht timelib_tzinfo *tzi; php_timezone_obj *tzobj; - z_date = zend_hash_str_find(myht, "date", sizeof("data")-1); + z_date = zend_hash_str_find(myht, "date", sizeof("date")-1); if (z_date && Z_TYPE_P(z_date) == IS_STRING) { z_timezone_type = zend_hash_str_find(myht, "timezone_type", sizeof("timezone_type")-1); if (z_timezone_type && Z_TYPE_P(z_timezone_type) == IS_LONG) { |