]> granicus.if.org Git - php/log
php
13 years agoMerge branch 'PHP-5.4'
Anatoliy Belsky [Thu, 24 May 2012 11:27:24 +0000 (13:27 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Fix bug #62139 ext\standard\tests\file\rename_variation13-win32.phpt fails

13 years agoFix bug #62139 ext\standard\tests\file\rename_variation13-win32.phpt fails
Anatoliy Belsky [Thu, 24 May 2012 11:26:32 +0000 (13:26 +0200)]
Fix bug #62139 ext\standard\tests\file\rename_variation13-win32.phpt fails

13 years agoMerge branch 'PHP-5.4'
Anatoliy Belsky [Thu, 24 May 2012 10:48:58 +0000 (12:48 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Fixed bug #62138 ext\standard\tests\dir\dir_variation8-win32.phpt fails

13 years agoFixed bug #62138 ext\standard\tests\dir\dir_variation8-win32.phpt fails
Anatoliy Belsky [Thu, 24 May 2012 10:39:00 +0000 (12:39 +0200)]
Fixed bug #62138 ext\standard\tests\dir\dir_variation8-win32.phpt fails

13 years agoMerge branch 'PHP-5.4'
Anatoliy Belsky [Thu, 24 May 2012 10:06:53 +0000 (12:06 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Fix bug #62137 ext\phar\tests\fatal_error_webphar.phpt fails

13 years agoFix bug #62137 ext\phar\tests\fatal_error_webphar.phpt fails
Anatoliy Belsky [Thu, 24 May 2012 10:04:38 +0000 (12:04 +0200)]
Fix bug #62137 ext\phar\tests\fatal_error_webphar.phpt fails

13 years agoMerge branch '5.4'
Gustavo André dos Santos Lopes [Thu, 24 May 2012 09:09:18 +0000 (11:09 +0200)]
Merge branch '5.4'

13 years agoMerge branch '5.3' into 5.4
Gustavo André dos Santos Lopes [Thu, 24 May 2012 09:08:55 +0000 (11:08 +0200)]
Merge branch '5.3' into 5.4

13 years agoFixed bug #60785
Gustavo André dos Santos Lopes [Thu, 24 May 2012 08:44:44 +0000 (10:44 +0200)]
Fixed bug #60785

Memory leak in IntlDateFormatter constructor.

udat_setCalendar() clones the calendar before it adopts it,
so we were leaking the original calendar.

Also we now validate the calendar type.

13 years agoadd support for the alloc_size __attribute__ (through ZEND_ATTRIBUTE_ALLOC_SIZE and...
Nuno Lopes [Thu, 24 May 2012 02:18:01 +0000 (22:18 -0400)]
add support for the alloc_size __attribute__ (through ZEND_ATTRIBUTE_ALLOC_SIZE and ZEND_ATTRIBUTE_ALLOC_SIZE2

requires GCC >= 4.3 or clang >= 3.2 to perform anything useful

13 years agoThis test depends on the default_charset setting, so set it to
Rasmus Lerdorf [Thu, 24 May 2012 00:37:13 +0000 (17:37 -0700)]
This test depends on the default_charset setting, so set it to
UTF-8 for consistent output

13 years agoFix broken apache_request_headers test
Rasmus Lerdorf [Thu, 24 May 2012 00:37:13 +0000 (17:37 -0700)]
Fix broken apache_request_headers test

This test depends on the default_charset setting, so set it to
UTF-8 for consistent output

13 years agoFixed bug #62097
Gustavo André dos Santos Lopes [Tue, 22 May 2012 10:36:28 +0000 (12:36 +0200)]
Fixed bug #62097

This fixes the fix for bug #54547 in 32-bit machines by accepting
float comparisons in 32-bit machines as long as the integer is
not larger than the mantissa.

13 years agoMerge branch '5.4'
Gustavo André dos Santos Lopes [Wed, 23 May 2012 13:52:47 +0000 (15:52 +0200)]
Merge branch '5.4'

13 years agoMerge branch '5.3' into 5.4
Gustavo André dos Santos Lopes [Wed, 23 May 2012 13:52:32 +0000 (15:52 +0200)]
Merge branch '5.3' into 5.4

13 years agoFixed bug #62017
Gustavo André dos Santos Lopes [Wed, 23 May 2012 13:48:50 +0000 (15:48 +0200)]
Fixed bug #62017

IntlDateFormatter constructor would release some resources
under certain error conditions.

13 years agoFixed several ext/intl tests
Gustavo André dos Santos Lopes [Wed, 23 May 2012 12:49:01 +0000 (14:49 +0200)]
Fixed several ext/intl tests

13 years agoFixed bug number in NEWS
Gustavo André dos Santos Lopes [Wed, 23 May 2012 11:42:24 +0000 (13:42 +0200)]
Fixed bug number in NEWS

13 years agoUpdated NEWS w.r.t to ext/intl changes
Gustavo André dos Santos Lopes [Wed, 23 May 2012 11:35:11 +0000 (13:35 +0200)]
Updated NEWS w.r.t to ext/intl changes

13 years agoMerge branch '5.4'
Gustavo André dos Santos Lopes [Wed, 23 May 2012 11:27:54 +0000 (13:27 +0200)]
Merge branch '5.4'

13 years agoMerge branch '5.3' into 5.4
Gustavo André dos Santos Lopes [Wed, 23 May 2012 11:27:21 +0000 (13:27 +0200)]
Merge branch '5.3' into 5.4

Conflicts:
sapi/fpm/fpm/fpm_main.c

13 years agoFixed bug #6208: memory leak in grapheme_extract()
Gustavo André dos Santos Lopes [Wed, 23 May 2012 10:09:27 +0000 (12:09 +0200)]
Fixed bug #6208: memory leak in grapheme_extract()

13 years agoFixed bug #62082
Gustavo André dos Santos Lopes [Wed, 23 May 2012 10:44:44 +0000 (12:44 +0200)]
Fixed bug #62082

This was a buffer overflow in internal function
get_icu_disp_value_src_php().

13 years agoFixed bug #62081
Gustavo André dos Santos Lopes [Wed, 23 May 2012 11:03:55 +0000 (13:03 +0200)]
Fixed bug #62081

Constructor of IntlDateFormatter would leak if called twice.

Made calling it more than once error out before starting
using resources.

13 years agoFixed bug #62070
Gustavo André dos Santos Lopes [Wed, 23 May 2012 11:22:06 +0000 (13:22 +0200)]
Fixed bug #62070

Collator::getSortKey() was returning an unterminated string
due the length given to RETURN_STRINGL being off by one.

13 years agoMerge branch 'PHP-5.4'
Jerome Loyet [Wed, 23 May 2012 09:53:20 +0000 (11:53 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  - Fixed bug #61026 (FPM pools can listen on the same address)

13 years ago- Fixed bug #61026 (FPM pools can listen on the same address)
Jerome Loyet [Wed, 23 May 2012 09:53:04 +0000 (11:53 +0200)]
- Fixed bug #61026 (FPM pools can listen on the same address)

13 years ago- Fixed bug #61026 (FPM pools can listen on the same address)
Jerome Loyet [Wed, 23 May 2012 09:52:04 +0000 (11:52 +0200)]
- Fixed bug #61026 (FPM pools can listen on the same address)

13 years agoMerge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
Jerome Loyet [Wed, 23 May 2012 09:41:29 +0000 (11:41 +0200)]
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4

* 'PHP-5.4' of git.php.net:php-src:
  Fix bug #62112: number_format() is not binary safe

13 years agoMerge branch 'master' of git.php.net:php-src
Jerome Loyet [Wed, 23 May 2012 09:40:59 +0000 (11:40 +0200)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Fix bug #62112: number_format() is not binary safe

13 years agoMerge branch 'PHP-5.4'
Jerome Loyet [Wed, 23 May 2012 09:40:36 +0000 (11:40 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  - Fixed bug #61839 (Unable to cross-compile PHP with --enable-fpm)

13 years ago- Fixed bug #61839 (Unable to cross-compile PHP with --enable-fpm)
Jerome Loyet [Wed, 23 May 2012 09:40:22 +0000 (11:40 +0200)]
- Fixed bug #61839 (Unable to cross-compile PHP with --enable-fpm)

13 years agoMerge branch '5.4'
Gustavo André dos Santos Lopes [Wed, 23 May 2012 09:37:45 +0000 (11:37 +0200)]
Merge branch '5.4'

13 years agoFix bug #62112: number_format() is not binary safe
Gustavo André dos Santos Lopes [Wed, 23 May 2012 08:56:57 +0000 (10:56 +0200)]
Fix bug #62112: number_format() is not binary safe

The bug report actually urges PHP 5.3's behavior to be
reinstated -- that is, make "\0", when used as a separator,
be the same as no separator at all. I believe that is not a
proper course of action and that "\0" being interpreted as
no seperator was a bug in PHP 5.3.

Using "" for no separator, in both 5.3 and 5.4, before and
after this change, causes no separator to be used, so
there is no functionality loss.

13 years agoMerge branch 'PHP-5.4'
Jerome Loyet [Wed, 23 May 2012 09:32:02 +0000 (11:32 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  - Fixed bug #61295 (php-fpm should not fail with commented 'user' for non-root start)

13 years ago- Fixed bug #61295 (php-fpm should not fail with commented 'user' for non-root start)
Jerome Loyet [Wed, 23 May 2012 09:31:33 +0000 (11:31 +0200)]
- Fixed bug #61295 (php-fpm should not fail with commented 'user' for non-root start)

13 years ago- Fixed bug #61295 (php-fpm should not fail with commented 'user' for non-root start)
Jerome Loyet [Wed, 23 May 2012 09:30:27 +0000 (11:30 +0200)]
- Fixed bug #61295 (php-fpm should not fail with commented 'user' for non-root start)

13 years agoMerge branch 'PHP-5.4'
Jerome Loyet [Wed, 23 May 2012 08:37:36 +0000 (10:37 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  - fix help message for '-R'
  - Fixed bug #61835 (php-fpm is not allowed to run as root)

13 years ago- Fix help message for '-R'
Jerome Loyet [Wed, 23 May 2012 08:36:45 +0000 (10:36 +0200)]
- Fix help message for '-R'

13 years ago- fix help message for '-R'
Jerome Loyet [Wed, 23 May 2012 08:35:37 +0000 (10:35 +0200)]
- fix help message for '-R'

13 years ago- add missing help message for '-R'
Jerome Loyet [Wed, 23 May 2012 08:34:16 +0000 (10:34 +0200)]
- add missing help message for '-R'

13 years ago- Fixed bug #61835 (php-fpm is not allowed to run as root)
Jerome Loyet [Wed, 23 May 2012 08:32:42 +0000 (10:32 +0200)]
- Fixed bug #61835 (php-fpm is not allowed to run as root)

13 years ago- Fixed bug #61835 (php-fpm is not allowed to run as root)
Jerome Loyet [Wed, 23 May 2012 07:49:13 +0000 (09:49 +0200)]
- Fixed bug #61835 (php-fpm is not allowed to run as root)

13 years agoMerge branch 'PHP-5.4'
Xinchen Hui [Wed, 23 May 2012 05:53:25 +0000 (13:53 +0800)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Revert NEWS
  Revert "Implemented FR #61602 Allow access to name of constant used as default value"
  Fix typo while resolving conflicts
  Revert "Implemented FR #61602 Allow access to name of constant used as default value"

13 years agoMerge remote-tracking branch 'origin/PHP-5.3' into PHP-5.4
Xinchen Hui [Wed, 23 May 2012 05:52:36 +0000 (13:52 +0800)]
Merge remote-tracking branch 'origin/PHP-5.3' into PHP-5.4

13 years agoRevert NEWS
Xinchen Hui [Wed, 23 May 2012 05:52:18 +0000 (13:52 +0800)]
Revert NEWS

13 years agoRevert "Implemented FR #61602 Allow access to name of constant used as default value"
Xinchen Hui [Wed, 23 May 2012 05:50:12 +0000 (13:50 +0800)]
Revert "Implemented FR #61602 Allow access to name of constant used as default value"

This reverts commit 054f3e3ce5af13c2c3a6ccd54f7dc3e2f6cd4f74.

See: http://news.php.net/php.cvs/69137 and the author confirmed.
Will commit later after the author fixed this then make a new PR.

Conflicts:

ext/reflection/php_reflection.c

13 years agoFix typo while resolving conflicts
Xinchen Hui [Wed, 23 May 2012 05:43:49 +0000 (13:43 +0800)]
Fix typo while resolving conflicts

13 years agoRevert "Implemented FR #61602 Allow access to name of constant used as default value"
Xinchen Hui [Wed, 23 May 2012 05:39:00 +0000 (13:39 +0800)]
Revert "Implemented FR #61602 Allow access to name of constant used as default value"

This reverts commit 054f3e3ce5af13c2c3a6ccd54f7dc3e2f6cd4f74.

See: http://news.php.net/php.cvs/69137 and the author confirmed.
Will commit later after the author fixed this then make a new PR.

Conflicts:

ext/reflection/php_reflection.c

13 years agoMerge branch 'PHP-5.4'
Anatoliy Belsky [Tue, 22 May 2012 16:52:37 +0000 (18:52 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Fix bug #62109 tests\basic\bug46313-win.phpt fails
  - Fixed bug #61045 (fpm don't send error log to fastcgi clients)
  add news for new pg_ functions

Conflicts:
UPGRADING

13 years agoMerge branch 'PHP-5.3' into PHP-5.4
Anatoliy Belsky [Tue, 22 May 2012 16:43:10 +0000 (18:43 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fix bug #62109 tests\basic\bug46313-win.phpt fails
  - Fixed bug #61045 (fpm don't send error log to fastcgi clients)

13 years agoFix bug #62109 tests\basic\bug46313-win.phpt fails
Anatoliy Belsky [Tue, 22 May 2012 16:41:03 +0000 (18:41 +0200)]
Fix bug #62109 tests\basic\bug46313-win.phpt fails

13 years agoMerge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
Jerome Loyet [Tue, 22 May 2012 06:47:40 +0000 (08:47 +0200)]
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4

* 'PHP-5.4' of git.php.net:php-src:
  add news for new pg_ functions

13 years agoMerge branch 'PHP-5.4'
Jerome Loyet [Tue, 22 May 2012 06:42:17 +0000 (08:42 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  - Fixed bug #61045 (fpm don't send error log to fastcgi clients)
  - fix NEWS for bug #61812

13 years ago- Fixed bug #61045 (fpm don't send error log to fastcgi clients)
Jerome Loyet [Tue, 22 May 2012 06:40:37 +0000 (08:40 +0200)]
- Fixed bug #61045 (fpm don't send error log to fastcgi clients)

13 years ago- fix NEWS for bug #61812
Jerome Loyet [Tue, 22 May 2012 06:38:09 +0000 (08:38 +0200)]
- fix NEWS for bug #61812

13 years ago- Fixed bug #61045 (fpm don't send error log to fastcgi clients)
Jerome Loyet [Tue, 22 May 2012 06:34:27 +0000 (08:34 +0200)]
- Fixed bug #61045 (fpm don't send error log to fastcgi clients)

13 years agoadd news for new pg_ functions
Stanislav Malyshev [Mon, 21 May 2012 23:12:38 +0000 (16:12 -0700)]
add news for new pg_ functions

13 years agoMerge branch 'PHP-5.4'
Felipe Pena [Mon, 21 May 2012 11:55:05 +0000 (08:55 -0300)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  - Fix the fix (typo s/AIX/_AIX/g)

13 years ago- Fix the fix (typo s/AIX/_AIX/g)
Felipe Pena [Mon, 21 May 2012 11:54:59 +0000 (08:54 -0300)]
- Fix the fix (typo s/AIX/_AIX/g)

13 years agoMerge branch 'PHP-5.4'
Xinchen Hui [Mon, 21 May 2012 11:06:50 +0000 (19:06 +0800)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Use free instead of efree

13 years agoUse free instead of efree
Xinchen Hui [Mon, 21 May 2012 11:02:45 +0000 (19:02 +0800)]
Use free instead of efree

13 years agoMerge branch 'PHP-5.4'
Xinchen Hui [Mon, 21 May 2012 10:59:16 +0000 (18:59 +0800)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Use emalloc instead of malloc

13 years agoUse emalloc instead of malloc
Xinchen Hui [Mon, 21 May 2012 10:58:19 +0000 (18:58 +0800)]
Use emalloc instead of malloc

13 years agoMerge branch 'PHP-5.4'
Anatoliy Belsky [Mon, 21 May 2012 10:52:33 +0000 (12:52 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Fix bug #62066 Test Bug - ext/tidy/tests/004.phpt

13 years agoMerge branch 'PHP-5.3' into PHP-5.4
Anatoliy Belsky [Mon, 21 May 2012 10:52:10 +0000 (12:52 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fix bug #62066 Test Bug - ext/tidy/tests/004.phpt

13 years agoFix bug #62066 Test Bug - ext/tidy/tests/004.phpt
Matt Ficken [Mon, 21 May 2012 10:51:24 +0000 (12:51 +0200)]
Fix bug #62066 Test Bug - ext/tidy/tests/004.phpt

13 years agoMerge branch 'PHP-5.4'
Anatoliy Belsky [Mon, 21 May 2012 10:38:43 +0000 (12:38 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Fixed bug #62068 Test bug - gmp_nextprime and 022
  Fix: 62067 Moved comments to FILE section
  - BFN

13 years agoMerge branch 'PHP-5.3' into PHP-5.4
Anatoliy Belsky [Mon, 21 May 2012 10:37:59 +0000 (12:37 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fixed bug #62068 Test bug - gmp_nextprime and 022
  Fix: 62067 Moved comments to FILE section
  - BFN

Conflicts:
NEWS

13 years agoFixed bug #62068 Test bug - gmp_nextprime and 022
Matt Ficken [Mon, 21 May 2012 10:31:16 +0000 (12:31 +0200)]
Fixed bug #62068 Test bug - gmp_nextprime and 022

13 years agoFixed bug #61998 (Using traits with method aliases appears to result in crash during...
Dmitry Stogov [Mon, 21 May 2012 10:04:33 +0000 (14:04 +0400)]
Fixed bug #61998 (Using traits with method aliases appears to result in crash during execution)

13 years agoFixed bug #61998 (Using traits with method aliases appears to result in crash during...
Dmitry Stogov [Mon, 21 May 2012 09:57:41 +0000 (13:57 +0400)]
Fixed bug #61998 (Using traits with method aliases appears to result in crash during execution)

13 years agoFixed bug #61998 (Using traits with method aliases appears to result in crash during...
Dmitry Stogov [Mon, 21 May 2012 09:46:07 +0000 (13:46 +0400)]
Fixed bug #61998 (Using traits with method aliases appears to result in crash during execution)

13 years agoFixed bug #61998 (Using traits with method aliases appears to result in crash during...
Dmitry Stogov [Mon, 21 May 2012 08:53:21 +0000 (12:53 +0400)]
Fixed bug #61998 (Using traits with method aliases appears to result in crash during execution)

13 years ago- BFN
Felipe Pena [Sun, 20 May 2012 22:41:15 +0000 (19:41 -0300)]
- BFN

13 years ago- Fixed bug #62025 (__ss_family was changed on AIX 5.3)
Felipe Pena [Sun, 20 May 2012 22:39:54 +0000 (19:39 -0300)]
- Fixed bug #62025 (__ss_family was changed on AIX 5.3)

13 years ago- Fixed bug #62025 (__ss_family was changed on AIX 5.3)
Felipe Pena [Sun, 20 May 2012 22:37:20 +0000 (19:37 -0300)]
- Fixed bug #62025 (__ss_family was changed on AIX 5.3)

13 years ago- Fixed build using g++ (which complains about jump that crosses initialization)
Felipe Pena [Sun, 20 May 2012 19:17:17 +0000 (16:17 -0300)]
- Fixed build using g++ (which complains about jump that crosses initialization)

13 years agoNote recent changes to ext/intl in UPGRADING
Gustavo André dos Santos Lopes [Sun, 20 May 2012 18:57:06 +0000 (19:57 +0100)]
Note recent changes to ext/intl in UPGRADING

13 years agoMerge remote branch 'github/intl_calendar'
Gustavo André dos Santos Lopes [Sun, 20 May 2012 18:50:17 +0000 (19:50 +0100)]
Merge remote branch 'github/intl_calendar'

13 years agoFix: 62067 Moved comments to FILE section
zoe slattery [Sat, 19 May 2012 15:13:25 +0000 (16:13 +0100)]
Fix: 62067 Moved comments to FILE section

13 years agoFix: 62067 Moved comments to FILE section
zoe slattery [Sat, 19 May 2012 15:13:25 +0000 (16:13 +0100)]
Fix: 62067 Moved comments to FILE section

13 years agoFix: 62067 Moved comments to FILE section
zoe slattery [Sat, 19 May 2012 15:13:25 +0000 (16:13 +0100)]
Fix: 62067 Moved comments to FILE section

13 years ago- BFN
Felipe Pena [Sat, 19 May 2012 00:26:24 +0000 (21:26 -0300)]
- BFN

13 years agoMerge branch 'master' of git.php.net:php-src
Felipe Pena [Fri, 18 May 2012 22:38:52 +0000 (19:38 -0300)]
Merge branch 'master' of git.php.net:php-src

13 years ago- BFN
Felipe Pena [Fri, 18 May 2012 22:38:02 +0000 (19:38 -0300)]
- BFN

13 years ago- Fixed bug #62064 (memory leak in the XML Writer module)
Felipe Pena [Fri, 18 May 2012 22:34:39 +0000 (19:34 -0300)]
- Fixed bug #62064 (memory leak in the XML Writer module)

13 years agoMerge branch 'PHP-5.3' into PHP-5.4
Felipe Pena [Fri, 18 May 2012 22:23:42 +0000 (19:23 -0300)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  - Fixed bug #62064 (memory leak in the XML Writer module)

13 years ago- Fixed bug #62064 (memory leak in the XML Writer module)
Felipe Pena [Fri, 18 May 2012 22:23:29 +0000 (19:23 -0300)]
- Fixed bug #62064 (memory leak in the XML Writer module)

13 years agoAdded IntlCalendar::toDateTime()
Gustavo André dos Santos Lopes [Thu, 17 May 2012 21:18:51 +0000 (23:18 +0200)]
Added IntlCalendar::toDateTime()

13 years agoFixed a couple of memory leaks
Gustavo André dos Santos Lopes [Thu, 17 May 2012 21:17:00 +0000 (23:17 +0200)]
Fixed a couple of memory leaks

13 years agoFixed bad DateTime construction state check
Gustavo André dos Santos Lopes [Thu, 17 May 2012 16:16:54 +0000 (18:16 +0200)]
Fixed bad DateTime construction state check

13 years agoMessageFormatter accepts IntlCalendar arguments
Gustavo André dos Santos Lopes [Thu, 17 May 2012 15:45:15 +0000 (17:45 +0200)]
MessageFormatter accepts IntlCalendar arguments

Now MessageFormatter::format() accepts IntlCalendar objects to be used in
arguments of type Format::kDate.

13 years agoMerge branch 'intl_format_tz' into intl_calendar
Gustavo André dos Santos Lopes [Thu, 17 May 2012 15:57:22 +0000 (17:57 +0200)]
Merge branch 'intl_format_tz' into intl_calendar

13 years agoBug #58756: w.r.t MessageFormatter (partial fix)
Gustavo André dos Santos Lopes [Wed, 16 May 2012 15:33:12 +0000 (17:33 +0200)]
Bug #58756: w.r.t MessageFormatter (partial fix)

I don't think the current ICU API allows this bug to be completely fixed.

Right now, the code cannot control the time zone used in date/time formats
that appear inside complex subformats. See the comment inside
umsg_set_timezone().

13 years agoHandle bogus string in intl_charFromString().
Gustavo André dos Santos Lopes [Mon, 30 Apr 2012 13:29:36 +0000 (15:29 +0200)]
Handle bogus string in intl_charFromString().

13 years agoWhitespace.
Gustavo André dos Santos Lopes [Mon, 30 Apr 2012 13:28:41 +0000 (15:28 +0200)]
Whitespace.

13 years agoAdded IntlTimeZone::fromDateTimeZone() and ::toDateTimeZone.
Gustavo André dos Santos Lopes [Mon, 30 Apr 2012 13:15:09 +0000 (15:15 +0200)]
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.

13 years agoFixed two IntlCalendar::setTimeZone() tests.
Gustavo André dos Santos Lopes [Fri, 6 Apr 2012 20:04:14 +0000 (22:04 +0200)]
Fixed two IntlCalendar::setTimeZone() tests.

13 years agoAdded IntlCalendar::fromDateTime()
Gustavo André dos Santos Lopes [Fri, 6 Apr 2012 19:52:43 +0000 (21:52 +0200)]
Added IntlCalendar::fromDateTime()

IntlCalendar::fromDateTime(DateTime|string $dateTime[, string $locale)
intlcal_from_date_time(...)

If a string is given as the first argument, the method will try to
instantiate a new DateTime object and use that instead.