php-src/ext
Gustavo André dos Santos Lopes 4cfd9995da Added IntlTimeZone::fromDateTimeZone() and ::toDateTimeZone.
IntlTimeZone::fromDateTimeZone(DateTimeZone $dtz) converts from an
ext/date TimeZone to an IntlTimeZone. The conversion is done by feeding
the time zone name (essentially what would be given by
DateTimeZone::getName()) to ICU's TimeZone::createTimeZone except if it's
an offset time zone. In that case, the offset is read from the ext/date
time zone object structure and an appopriate id (of the form
GMT<+|-><HH:MM>) is given to ICU's TimeZone::createTimeZone. Not all
ext/date time zones are recognized for ICU. For instance, WEST is not.
Note that these kind of abbreviations, as far as I can tell, can only be
created via ext/date DateTime, not directly through DateTimeZone's
constructor.

For IntlTimeZone::toDateTimeZone(), the behavior is symmetrical.
We instantiate a DateTimeZone and then call its constructor if we don't
have an offset time zone, otherwise we mess with its structure. If the
timezone is not valid for ext/date, then we allow the exception of
DateTimeZone constructor to propagate.
2012-05-17 17:23:51 +02:00
..
bcmath - Year++ 2012-01-01 13:15:04 +00:00
bz2 - Year++ 2012-01-01 13:15:04 +00:00
calendar Merge branch 'PHP-5.3' into PHP-5.4 2012-04-28 11:44:54 +02:00
com_dotnet Fix bug #61481 Test Bug - ext/com_dotnet/tests/bug49192 2012-04-03 13:28:37 +02:00
ctype - Year++ 2012-01-01 13:15:04 +00:00
curl Merge branch 'PHP-5.4' 2012-05-06 00:53:47 +08:00
date Merge branch 'PHP-5.4' 2012-04-24 13:45:07 +02:00
dba Merge branch 'PHP-5.3' into PHP-5.4 2012-03-20 17:58:58 +01:00
dom Merge branch 'PHP-5.3' into PHP-5.4 2012-05-15 11:43:28 +01:00
enchant Merge branch 'PHP-5.3' into PHP-5.4 2012-03-20 17:58:58 +01:00
ereg - Year++ 2012-01-01 13:15:04 +00:00
exif - Year++ 2012-01-01 13:15:04 +00:00
fileinfo Fix bug #61811 three of finfo tests failed, see also #61812. 2012-04-22 19:26:54 +02:00
filter Merge branch 'PHP-5.3' into PHP-5.4 2012-04-30 10:28:00 +02:00
ftp MFH r322485 2012-01-26 05:15:57 +00:00
gd Merge branch 'PHP-5.3' into PHP-5.4 2012-04-04 18:54:03 +02:00
gettext - Year++ 2012-01-01 13:15:04 +00:00
gmp - Year++ 2012-01-01 13:15:04 +00:00
hash fix tests failing due to corrected hash tiger 2012-03-19 21:49:47 +01:00
iconv Merge branch 'PHP-5.3' into PHP-5.4 2012-03-20 17:58:58 +01:00
imap - Year++ 2012-01-01 13:15:04 +00:00
interbase Merge branch 'PHP-5.4' 2012-03-29 18:28:38 +03:00
intl Added IntlTimeZone::fromDateTimeZone() and ::toDateTimeZone. 2012-05-17 17:23:51 +02:00
json Revert "Update test to fix breakage caused by the previous commit." 2012-05-15 23:25:06 -07:00
ldap Merge branch 'PHP-5.3' into PHP-5.4 2012-04-16 15:26:50 +02:00
libxml Merge branch 'PHP-5.3' into PHP-5.4 2012-04-16 15:46:02 +02:00
mbstring Fixed bug #61631 mbstring mail related tests fail 2012-04-10 12:23:07 +02:00
mcrypt - Year++ 2012-01-01 13:15:04 +00:00
mssql - Year++ 2012-01-01 13:15:04 +00:00
mysql - Year++ 2012-01-01 13:15:04 +00:00
mysqli Merge branch 'PHP-5.4' 2012-05-16 16:00:17 +02:00
mysqlnd Merge branch 'PHP-5.4' 2012-05-16 16:00:17 +02:00
oci8 Merge branch 'PHP-5.3' into PHP-5.4 2012-03-30 16:17:37 -07:00
odbc - Year++ 2012-01-01 13:15:04 +00:00
openssl Fix bug #61413 ext\openssl\tests\openssl_encrypt_crash.phpt fails 5.3 only 2012-04-24 14:05:35 +02:00
pcntl Merge branch '5.4' 2012-03-29 08:48:13 +01:00
pcre Deprecate /e modifier 2012-03-04 13:39:12 +00:00
pdo Merge branch 'PHP-5.4' 2012-04-19 12:49:47 +02:00
pdo_dblib - Year++ 2012-01-01 13:15:04 +00:00
pdo_firebird fix gcov Warning: ibase_drop_db(): lock time-out on wait transaction object http://gcov.php.net/viewer.php?version=PHP_5_4&func=tests&file=ext%2Fpdo_firebird%2Ftests%2Fbug_53280.phpt 2012-02-05 09:58:50 +00:00
pdo_mysql Merge branch 'PHP-5.4' 2012-05-02 16:15:35 +02:00
pdo_oci - Year++ 2012-01-01 13:15:04 +00:00
pdo_odbc Fixed bug #61212 (PDO ODBC Segfaults on SQL_SUCESS_WITH_INFO). 2012-03-14 20:20:33 +00:00
pdo_pgsql - Fixed bug #61267: pdo_pgsql's PDO::exec() returns the number of SELECTed 2012-03-08 08:52:28 +00:00
pdo_sqlite - fix #55226, WS 2012-01-31 07:17:05 +00:00
pgsql add pg_escape_identifier/pg_escape_literal 2012-04-19 13:40:24 -07:00
phar Merge branch 'PHP-5.4' 2012-05-15 22:39:17 -07:00
posix Merge branch 'PHP-5.3' into PHP-5.4 2012-05-15 11:43:28 +01:00
pspell - Year++ 2012-01-01 13:15:04 +00:00
readline Merge branch 'PHP-5.3' into PHP-5.4 2012-03-21 09:13:42 -07:00
recode Replace $Revision$ with $Id$ in keyword expansion enable files 2012-03-20 17:53:47 +01:00
reflection Merge branch 'PHP-5.3' into PHP-5.4 2012-05-15 11:43:28 +01:00
session Merge branch 'PHP-5.3' into PHP-5.4 2012-04-30 12:10:43 +02:00
shmop - Year++ 2012-01-01 13:15:04 +00:00
simplexml Merge branch 'PHP-5.3' into PHP-5.4 2012-03-20 17:58:58 +01:00
skeleton Replace $Revision$ with $Id$ in keyword expansion enable files 2012-03-20 17:53:47 +01:00
snmp merge from trunk: 2012-01-13 18:46:56 +00:00
soap Merge branch 'PHP-5.3' into PHP-5.4 2012-05-15 11:06:14 +01:00
sockets Fixed bug #61638 Test ext\sockets\tests\unixloop.phpt fails 2012-04-10 14:00:51 +02:00
spl Fix bug 61671 ext\spl\tests\fileobject_003.phpt fails 2012-04-19 11:33:12 +02:00
sqlite3 Merge branch 'PHP-5.4' 2012-04-26 15:18:17 +02:00
standard Merge branch 'PHP-5.4' 2012-05-15 22:39:17 -07:00
sybase_ct - Year++ 2012-01-01 13:15:04 +00:00
sysvmsg Merge branch 'PHP-5.3' into PHP-5.4 2012-03-20 17:58:58 +01:00
sysvsem - Year++ 2012-01-01 13:15:04 +00:00
sysvshm - Year++ 2012-01-01 13:15:04 +00:00
tidy Merge branch 'PHP-5.3' into PHP-5.4 2012-04-16 13:42:52 +02:00
tokenizer - Year++ 2012-01-01 13:15:04 +00:00
wddx - Year++ 2012-01-01 13:15:04 +00:00
xml - Year++ 2012-01-01 13:15:04 +00:00
xmlreader more verbose skip reason in test files with not so obvious extension requirements 2012-02-25 12:10:41 +00:00
xmlrpc Fix bug #61264: xmlrpc_parse_method_descriptions leaks temporary variable 2012-03-03 12:46:17 +00:00
xmlwriter - Year++ 2012-01-01 13:15:04 +00:00
xsl - Year++ 2012-01-01 13:15:04 +00:00
zip - Year++ 2012-01-01 13:15:04 +00:00
zlib cleanup merge 2012-05-15 09:44:01 +02:00
ext_skel
ext_skel_win32.php