diff options
author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-06-01 17:17:35 +0200 |
---|---|---|
committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2012-06-03 23:39:34 +0200 |
commit | 72beff0d414ef45c06f118f7f60d5cd194c6a013 (patch) | |
tree | 04545ca96342c7708313fe8074f4282048799ac8 /ext/intl/timezone/timezone_methods.cpp | |
parent | f3802db7a087d056ae1a0804ea0f7b503dd9c9a3 (diff) | |
download | php-git-72beff0d414ef45c06f118f7f60d5cd194c6a013.tar.gz |
Added private constructor to IntlTimeZone.
Diffstat (limited to 'ext/intl/timezone/timezone_methods.cpp')
-rw-r--r-- | ext/intl/timezone/timezone_methods.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/intl/timezone/timezone_methods.cpp b/ext/intl/timezone/timezone_methods.cpp index e596cc5174..b7f31c3f3b 100644 --- a/ext/intl/timezone/timezone_methods.cpp +++ b/ext/intl/timezone/timezone_methods.cpp @@ -34,6 +34,13 @@ extern "C" { } #include "common/common_enum.h" +U_CFUNC PHP_METHOD(IntlTimeZone, __construct) +{ + zend_throw_exception( NULL, + "An object of this type cannot be created with the new operator", + 0 TSRMLS_CC ); +} + U_CFUNC PHP_FUNCTION(intltz_create_time_zone) { char *str_id; |