]> granicus.if.org Git - php/log
php
12 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

12 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)

12 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

12 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)

12 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)

12 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

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

12 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

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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)

12 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)

12 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)

12 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)

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

12 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)

12 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)

12 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)

12 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

12 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'

12 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

12 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

12 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

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

12 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

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

12 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)

12 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)

12 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)

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

12 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

12 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

12 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.

12 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

12 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().

12 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().

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

12 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.

12 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.

12 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.

12 years agoAccept DateTimeZone where time zones are expected.
Gustavo André dos Santos Lopes [Fri, 6 Apr 2012 19:50:08 +0000 (21:50 +0200)]
Accept DateTimeZone where time zones are expected.

Also unified timezone handling in IntlCalendar::setTimeZone()
to that in the IntlCalendar and IntlGregorianCalendar constructors.

12 years agoDummy (whitespace) change so Dan Brown can verify snap generation from git
Christopher Jones [Wed, 16 May 2012 17:13:34 +0000 (10:13 -0700)]
Dummy (whitespace) change so Dan Brown can verify snap generation from git

PHP snapshots were still pulling from SVN and were out of date. This
is a dummy PHP 5.4-only commit so Dan can verify what he's updated for
git in the backend.

12 years agoMerge branch 'PHP-5.4'
Johannes Schlüter [Wed, 16 May 2012 14:50:57 +0000 (16:50 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  PHP 5.3.15-dev

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Johannes Schlüter [Wed, 16 May 2012 14:50:33 +0000 (16:50 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  PHP 5.3.15-dev

Conflicts:
configure.in
main/php_version.h

12 years agoPHP 5.3.15-dev
Johannes Schlüter [Wed, 16 May 2012 14:49:35 +0000 (16:49 +0200)]
PHP 5.3.15-dev

12 years agoMerge branch 'PHP-5.3' of git.php.net:/php-src into PHP-5.3
Johannes Schlüter [Wed, 16 May 2012 14:46:08 +0000 (16:46 +0200)]
Merge branch 'PHP-5.3' of git.php.net:/php-src into PHP-5.3

* 'PHP-5.3' of git.php.net:/php-src:
  Fix for bug#62046

12 years agoMerge branch 'PHP-5.4'
Johannes Schlüter [Wed, 16 May 2012 14:41:23 +0000 (16:41 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  fd fix
  fix bug #61065 (cherry picked from commit a10e778bfb7ce9caa1f91666ddf2705db7982d68)

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Johannes Schlüter [Wed, 16 May 2012 14:40:29 +0000 (16:40 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  fd fix
  fix bug #61065 (cherry picked from commit a10e778bfb7ce9caa1f91666ddf2705db7982d68)

12 years agofd fix
Stanislav Malyshev [Wed, 16 May 2012 05:35:43 +0000 (22:35 -0700)]
fd fix

12 years agofix bug #61065
Stanislav Malyshev [Wed, 16 May 2012 05:34:34 +0000 (22:34 -0700)]
fix bug #61065
(cherry picked from commit a10e778bfb7ce9caa1f91666ddf2705db7982d68)

12 years agoMerge branch 'PHP-5.4'
andrey [Wed, 16 May 2012 14:00:17 +0000 (16:00 +0200)]
Merge branch 'PHP-5.4'

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
andrey [Wed, 16 May 2012 13:59:39 +0000 (15:59 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

Conflicts:
ext/mysqlnd/mysqlnd_ps.c

merge fix for bug#62046

12 years agoFix for bug#62046
andrey [Wed, 16 May 2012 12:28:55 +0000 (14:28 +0200)]
Fix for bug#62046

Bug#62046 mysqli@mysqlnd can't iterate over stored sets after call to
mysqli_stmt_reset().

Stmt's state was changed to STMT_PREPARED and leads the driver to think
that the stmt was just prepared. Because result set exist also for only
prepared but not executed sets, the check for stmt->result isn't any good.
There is a result set, because as response for COM_PREPARE the server sends
metadata and metadata is part of a result set. After COM_EXECUTE the server
sends metadata again, which could be different and in this case more correct.

12 years agoMerge branch 'PHP-5.4'
Felipe Pena [Wed, 16 May 2012 11:40:53 +0000 (08:40 -0300)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  - Fixed bug #55299 (multiple null pointer in win32/registry.c)

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Felipe Pena [Wed, 16 May 2012 11:40:45 +0000 (08:40 -0300)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  - Fixed bug #55299 (multiple null pointer in win32/registry.c)

12 years ago- Fixed bug #55299 (multiple null pointer in win32/registry.c)
Felipe Pena [Wed, 16 May 2012 11:40:12 +0000 (08:40 -0300)]
- Fixed bug #55299 (multiple null pointer in win32/registry.c)

12 years agoMerge branch 'PHP-5.4'
Stanislav Malyshev [Wed, 16 May 2012 06:30:34 +0000 (23:30 -0700)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Revert "Update test to fix breakage caused by the previous commit."
  fix test
  to 5.4.5-dev

12 years agoRevert "Update test to fix breakage caused by the previous commit."
Stanislav Malyshev [Wed, 16 May 2012 06:25:06 +0000 (23:25 -0700)]
Revert "Update test to fix breakage caused by the previous commit."

This reverts commit 05c8d4766c272e101b5279f0ec432e1b16e74637.
Connected to revert 7bbd5521d28ee77c5a8df80174f52dad0112e872.

12 years agofix test
Stanislav Malyshev [Wed, 16 May 2012 06:09:46 +0000 (23:09 -0700)]
fix test

12 years agoto 5.4.5-dev
Stanislav Malyshev [Wed, 16 May 2012 05:46:49 +0000 (22:46 -0700)]
to 5.4.5-dev

12 years agoMerge branch 'PHP-5.4'
Stanislav Malyshev [Wed, 16 May 2012 05:39:17 +0000 (22:39 -0700)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  fd fix
  fix bug #61065

Conflicts:
UPGRADING

12 years agofd fix
Stanislav Malyshev [Wed, 16 May 2012 05:35:43 +0000 (22:35 -0700)]
fd fix

12 years agofix bug #61065
Stanislav Malyshev [Wed, 16 May 2012 05:34:34 +0000 (22:34 -0700)]
fix bug #61065

12 years agoMerge branch 'PHP-5.4'
zoe slattery [Tue, 15 May 2012 13:40:49 +0000 (14:40 +0100)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Changes to remaining two tests, #62022

12 years agoChanges to remaining two tests, #62022
zoe slattery [Tue, 15 May 2012 13:39:51 +0000 (14:39 +0100)]
Changes to remaining two tests, #62022

12 years agoMerge branch 'PHP-5.4'
zoe slattery [Tue, 15 May 2012 10:48:21 +0000 (11:48 +0100)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Small fixes to tests, see #62022

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
zoe slattery [Tue, 15 May 2012 10:43:28 +0000 (11:43 +0100)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Small fixes to tests, see #62022

12 years agoSmall fixes to tests, see #62022
zoe slattery [Tue, 15 May 2012 10:42:14 +0000 (11:42 +0100)]
Small fixes to tests, see #62022

12 years agoMerge branch 'PHP-5.4'
zoe slattery [Tue, 15 May 2012 10:06:48 +0000 (11:06 +0100)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Change impl of GZIP_POST, DEFLATE_POST. See #62021

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
zoe slattery [Tue, 15 May 2012 10:06:14 +0000 (11:06 +0100)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Change impl of GZIP_POST, DEFLATE_POST. See #62021

12 years agoChange impl of GZIP_POST, DEFLATE_POST. See #62021
zoe slattery [Tue, 15 May 2012 10:05:20 +0000 (11:05 +0100)]
Change impl of GZIP_POST, DEFLATE_POST. See #62021

12 years agoMerge branch 'PHP-5.4'
Michael Wallner [Tue, 15 May 2012 09:26:41 +0000 (11:26 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  BFN
  Fix NEWS entry for #61602.

12 years agoBFN
Michael Wallner [Tue, 15 May 2012 09:26:13 +0000 (11:26 +0200)]
BFN

12 years agoFix NEWS entry for #61602.
Sebastian Bergmann [Tue, 15 May 2012 09:14:36 +0000 (11:14 +0200)]
Fix NEWS entry for #61602.

12 years agoMerge branch 'PHP-5.4'
Sebastian Bergmann [Tue, 15 May 2012 09:12:03 +0000 (11:12 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Fixed CODING_STANDARD and move parameter parse code
  Implemented FR #61602 Allow access to name of constant used as default value

12 years agoMerge branch 'add-const-name' of git://github.com/reeze/php-src into PHP-5.4
Sebastian Bergmann [Tue, 15 May 2012 09:08:08 +0000 (11:08 +0200)]
Merge branch 'add-const-name' of git://github.com/reeze/php-src into PHP-5.4

12 years agocleanup merge
Michael Wallner [Tue, 15 May 2012 07:44:01 +0000 (09:44 +0200)]
cleanup merge

12 years agofix bug #60761 zlib.output_compression fails on refresh
Michael Wallner [Tue, 15 May 2012 07:33:07 +0000 (09:33 +0200)]
fix bug #60761 zlib.output_compression fails on refresh

12 years agoBump to 5.4.4-dev
Christopher Jones [Mon, 14 May 2012 19:43:36 +0000 (12:43 -0700)]
Bump to 5.4.4-dev

12 years agofix bug #61782 - __clone/__destruct do not match other methods when checking access...
Stanislav Malyshev [Sun, 13 May 2012 05:12:48 +0000 (22:12 -0700)]
fix bug #61782 - __clone/__destruct do not match other methods when checking access controls

12 years agofix bug #54547
Stanislav Malyshev [Fri, 11 May 2012 06:58:10 +0000 (23:58 -0700)]
fix bug #54547

12 years agoupdate NEWS/UPGRADING
Stanislav Malyshev [Sun, 13 May 2012 21:48:22 +0000 (14:48 -0700)]
update NEWS/UPGRADING

12 years agofix bug #61782 - __clone/__destruct do not match other methods when checking access...
Stanislav Malyshev [Sun, 13 May 2012 05:12:48 +0000 (22:12 -0700)]
fix bug #61782 - __clone/__destruct do not match other methods when checking access controls

12 years agofix bug #54547
Stanislav Malyshev [Fri, 11 May 2012 06:58:10 +0000 (23:58 -0700)]
fix bug #54547

12 years agoMerge branch 'extra_precision'
Gustavo André dos Santos Lopes [Sun, 13 May 2012 21:03:51 +0000 (23:03 +0200)]
Merge branch 'extra_precision'

12 years agoKeep date precision in MessageFormatter.
Gustavo André dos Santos Lopes [Sun, 6 May 2012 11:06:44 +0000 (13:06 +0200)]
Keep date precision in MessageFormatter.

MessageFormatter::parse and MessageFormat::format (and their static
equivalents) now don't throw away better than second precision in the
arguments.

It's already bad enough that in MessageFormatter and IntlDateFormatter we
use seconds since epoch instead of milliseconds since epoch, deviating
from the ICU date representations. But we don't need to throw away extra
precision when parsing dates; we can keep the seconds since epoch
convention and return non integer doubles with only a small BC impact.
Note that we already could return doubles from MessageFormatter::parse if
the date was sufficiently in the past or in the future.

12 years agoUpdated UPGRADING with changes to ext/intl.
Gustavo André dos Santos Lopes [Sun, 13 May 2012 20:56:11 +0000 (21:56 +0100)]
Updated UPGRADING with changes to ext/intl.

12 years agoMerge branch 'fr61871'
Gustavo André dos Santos Lopes [Sun, 13 May 2012 20:36:21 +0000 (21:36 +0100)]
Merge branch 'fr61871'

12 years agoICU < 4.8 compat in MessageFormatter
Gustavo André dos Santos Lopes [Sun, 13 May 2012 18:14:14 +0000 (20:14 +0200)]
ICU < 4.8 compat in MessageFormatter

Restricted support for named arguments to ICU 4.8+.

Also added bound checks when converting arguments to Formattables.

12 years agoDon't check number of args in msgfmt_do_format
Gustavo André dos Santos Lopes [Sun, 13 May 2012 16:27:14 +0000 (18:27 +0200)]
Don't check number of args in msgfmt_do_format

The check does not work reliably across ICU versions when named arguments
are added to the mix. For instance, for recent versions of ICU like 49,
a pattern like "{foo,number} {foo}", has 0 returned from
umsg_format_arg_count(), but for ICU 4.0, this returns 2.

12 years agoAdded new MessageFormatter tests.
Gustavo André dos Santos Lopes [Sun, 6 May 2012 23:18:30 +0000 (01:18 +0200)]
Added new MessageFormatter tests.

12 years agoBetter error messages in MessageFormatter::format.
Gustavo André dos Santos Lopes [Sun, 6 May 2012 21:45:08 +0000 (23:45 +0200)]
Better error messages in MessageFormatter::format.

12 years agoAccept numeric strings for dates.
Gustavo André dos Santos Lopes [Sun, 6 May 2012 16:12:53 +0000 (18:12 +0200)]
Accept numeric strings for dates.

Refactored umsg_helper_zval_to_millis in the process.

12 years agoCache arguments type info in MessageFormatter.
Gustavo André dos Santos Lopes [Sun, 6 May 2012 14:31:52 +0000 (16:31 +0200)]
Cache arguments type info in MessageFormatter.

12 years agoSet global error if insufficient numeric args. WS.
Gustavo André dos Santos Lopes [Sat, 5 May 2012 22:48:17 +0000 (00:48 +0200)]
Set global error if insufficient numeric args. WS.