static int php_date_initialize_from_hash(php_date_obj **dateobj, HashTable *myht)
{
zval *z_date;
- zval *z_timezone;
- zval *z_timezone_type;
zval tmp_obj;
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);
+ zval *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) {
- z_timezone = zend_hash_str_find(myht, "timezone", sizeof("timezone")-1);
+ zval *z_timezone = zend_hash_str_find(myht, "timezone", sizeof("timezone")-1);
if (z_timezone && Z_TYPE_P(z_timezone) == IS_STRING) {
switch (Z_LVAL_P(z_timezone_type)) {
case TIMELIB_ZONETYPE_OFFSET: