diff options
author | Lonny Kapelushnik <lonnyk@gmail.com> | 2012-09-28 12:15:20 +0000 |
---|---|---|
committer | Derick Rethans <github@derickrethans.nl> | 2013-03-31 10:45:00 +0100 |
commit | 30d0ae42b56c62bc441d763dfa8388c43625b83d (patch) | |
tree | b1e476cd26f16593e76c1488e021a33c5373d5b0 /ext/date/php_date.h | |
parent | 5dd73b9e540206a4b084b915caec1579dfcb19f2 (diff) | |
download | php-git-30d0ae42b56c62bc441d763dfa8388c43625b83d.tar.gz |
Bug 54567 DateTimeZone serialize/unserialize
Make DateTimeZone serializable and implement __set_state
Diffstat (limited to 'ext/date/php_date.h')
-rw-r--r-- | ext/date/php_date.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/date/php_date.h b/ext/date/php_date.h index efae0a1db8..725590136c 100644 --- a/ext/date/php_date.h +++ b/ext/date/php_date.h @@ -84,6 +84,8 @@ PHP_METHOD(DateTimeImmutable, setISODate); PHP_METHOD(DateTimeImmutable, setTimestamp); PHP_METHOD(DateTimeZone, __construct); +PHP_METHOD(DateTimeZone, __wakeup); +PHP_METHOD(DateTimeZone, __set_state); PHP_FUNCTION(timezone_open); PHP_FUNCTION(timezone_name_get); PHP_FUNCTION(timezone_name_from_abbr); @@ -144,6 +146,7 @@ struct _php_timezone_obj { int dst; } z; } tzi; + HashTable *props; }; struct _php_interval_obj { |