]> granicus.if.org Git - php/log
php
12 years agoMerge branch 'PHP-5.4'
Stanislav Malyshev [Wed, 13 Jun 2012 19:25:04 +0000 (12:25 -0700)]
Merge branch 'PHP-5.4'

Merge reverts from 5.4, but shouldn't actually revert anything
* PHP-5.4:
  Merge PHP 5.3.14 NEWS
  re-add 61755 to NEWS
  re-add 61755 to NEWS
  Revert "Add PBKDF2 support via openssl()"
  Revert "Rename openssl_pkcs5_pbkdf2_hmac() to something that doesn't sound like a spell."
  add CVE

12 years agosimplify boolval()
Stanislav Malyshev [Wed, 13 Jun 2012 19:01:26 +0000 (12:01 -0700)]
simplify boolval()

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Johannes Schlüter [Wed, 13 Jun 2012 08:36:49 +0000 (10:36 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Merge PHP 5.3.14 NEWS
  re-add 61755 to NEWS

12 years agoMerge PHP 5.3.14 NEWS
Johannes Schlüter [Wed, 13 Jun 2012 08:35:58 +0000 (10:35 +0200)]
Merge PHP 5.3.14 NEWS

12 years agore-add 61755 to NEWS
Stanislav Malyshev [Tue, 12 Jun 2012 18:53:24 +0000 (11:53 -0700)]
re-add 61755 to NEWS

12 years agore-add 61755 to NEWS
Stanislav Malyshev [Tue, 12 Jun 2012 18:49:35 +0000 (11:49 -0700)]
re-add 61755 to NEWS

12 years agoRevert "Add PBKDF2 support via openssl()"
Stanislav Malyshev [Tue, 12 Jun 2012 18:22:49 +0000 (11:22 -0700)]
Revert "Add PBKDF2 support via openssl()"

This reverts commit b5b8ea1050837fba5a6cee55e41b4574ed64158e.
Looks like we don't have agreement yet on this for 5.4. Let's keep it in 5.5 for now.

12 years agoRevert "Rename openssl_pkcs5_pbkdf2_hmac() to something that doesn't sound like a...
Stanislav Malyshev [Tue, 12 Jun 2012 18:21:54 +0000 (11:21 -0700)]
Revert "Rename openssl_pkcs5_pbkdf2_hmac() to something that doesn't sound like a spell."

This reverts commit bccd1e672fabc3c788e93075221d47d9f077b167.
Looks like we don't have agreement yet on this for 5.4. Let's keep it in 5.5 for now.

12 years agoadd CVE
Stanislav Malyshev [Tue, 12 Jun 2012 18:18:43 +0000 (11:18 -0700)]
add CVE

12 years agoOne more time
Scott MacVicar [Mon, 11 Jun 2012 23:23:27 +0000 (16:23 -0700)]
One more time

12 years agoMerge branch '5.4'
Scott MacVicar [Mon, 11 Jun 2012 23:04:01 +0000 (16:04 -0700)]
Merge branch '5.4'

* 5.4:
  Rename openssl_pkcs5_pbkdf2_hmac() to something that doesn't sound like a spell.
  Add PBKDF2 support via openssl()

Conflicts:
ext/openssl/openssl.c

12 years agoAdd PBKDF2 support via openssl()
Scott MacVicar [Mon, 11 Jun 2012 07:16:30 +0000 (00:16 -0700)]
Add PBKDF2 support via openssl()

Summary:
No easy way to put these in the hash extension since we don't really support optional
parameters to certain algorithms. Implemented in openssl for now since it has it already
and is pretty stable.

Only SHA1 is confirmed to work as an algorithm but openssl has a parameter so it can be
changed in the future.

Will backport to 5.4 potentially with Stas' approval.

Test Plan:
Ran newly added tests which came from RFC 6070

12 years agoRename openssl_pkcs5_pbkdf2_hmac() to something that doesn't sound like a spell.
Scott MacVicar [Mon, 11 Jun 2012 19:38:54 +0000 (12:38 -0700)]
Rename openssl_pkcs5_pbkdf2_hmac() to something that doesn't sound like a spell.

Summary:
Stas pointed out that this is named pretty poorly. Go for openssl_pbkdf2()

12 years agoAdd PBKDF2 support via openssl()
Scott MacVicar [Mon, 11 Jun 2012 07:16:30 +0000 (00:16 -0700)]
Add PBKDF2 support via openssl()

Summary:
No easy way to put these in the hash extension since we don't really support optional
parameters to certain algorithms. Implemented in openssl for now since it has it already
and is pretty stable.

Only SHA1 is confirmed to work as an algorithm but openssl has a parameter so it can be
changed in the future.

Will backport to 5.4 potentially with Stas' approval.

Test Plan:
Ran newly added tests which came from RFC 6070

12 years agoRename openssl_pkcs5_pbkdf2_hmac() to something that doesn't sound like a spell.
Scott MacVicar [Mon, 11 Jun 2012 19:38:54 +0000 (12:38 -0700)]
Rename openssl_pkcs5_pbkdf2_hmac() to something that doesn't sound like a spell.

Summary:
Stas pointed out that this is named pretty poorly. Go for openssl_pbkdf2()

12 years ago- Fixed build (PKCS5_PBKDF2_HMAC is from 1.0.0)
Felipe Pena [Mon, 11 Jun 2012 17:08:38 +0000 (14:08 -0300)]
- Fixed build (PKCS5_PBKDF2_HMAC is from 1.0.0)

12 years agoMerge branch 'PHP-5.4'
Anatoliy Belsky [Mon, 11 Jun 2012 15:03:14 +0000 (17:03 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Fix bug #62271 test bug - ext/wddx/tests/bug48562.phpt

12 years agoFix bug #62271 test bug - ext/wddx/tests/bug48562.phpt
Matt Ficken [Mon, 11 Jun 2012 15:00:36 +0000 (17:00 +0200)]
Fix bug #62271 test bug - ext/wddx/tests/bug48562.phpt

12 years agoMerge branch '5.4'
Scott MacVicar [Mon, 11 Jun 2012 07:29:02 +0000 (00:29 -0700)]
Merge branch '5.4'

* 5.4:
  Add PBKDF2 support via openssl()

12 years agoAdd PBKDF2 support via openssl()
Scott MacVicar [Mon, 11 Jun 2012 07:16:30 +0000 (00:16 -0700)]
Add PBKDF2 support via openssl()

Summary:
No easy way to put these in the hash extension since we don't really support optional
parameters to certain algorithms. Implemented in openssl for now since it has it already
and is pretty stable.

Only SHA1 is confirmed to work as an algorithm but openssl has a parameter so it can be
changed in the future.

Will backport to 5.4 potentially with Stas' approval.

Test Plan:
Ran newly added tests which came from RFC 6070

12 years agoMerge branch 'PHP-5.4'
Stanislav Malyshev [Mon, 11 Jun 2012 03:38:58 +0000 (20:38 -0700)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  typo fix

12 years agotypo fix
Stanislav Malyshev [Mon, 11 Jun 2012 03:38:22 +0000 (20:38 -0700)]
typo fix

12 years agoMerge branch 'PHP-5.4'
David Soria Parra [Sun, 10 Jun 2012 14:18:05 +0000 (18:18 +0400)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Make travis silent

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
David Soria Parra [Sun, 10 Jun 2012 14:17:49 +0000 (18:17 +0400)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Make travis silent

12 years agoMake travis silent
David Soria Parra [Sun, 10 Jun 2012 14:15:34 +0000 (18:15 +0400)]
Make travis silent

Travis will always build all branches. As we just have a .travis.yml
on master, travis will go ahead and checkout PHP-5.3. It fails and
then sends mails. We really don't want to get spammed, so we add
a .travis.yml that is just silent.

12 years agoMerge branch 'PHP-5.4'
David Soria Parra [Sun, 10 Jun 2012 13:08:10 +0000 (17:08 +0400)]
Merge branch 'PHP-5.4'

By Stanislav Malyshev (1) and michelangelo (1)
* PHP-5.4:
  Adding a test for ext/posix/tests/posix_getegid_basic.phpt
  typo

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
David Soria Parra [Sun, 10 Jun 2012 13:08:02 +0000 (17:08 +0400)]
Merge branch 'PHP-5.3' into PHP-5.4

By Stanislav Malyshev (1) and michelangelo (1)
* PHP-5.3:
  Adding a test for ext/posix/tests/posix_getegid_basic.phpt
  typo

12 years agoAdding a test for ext/posix/tests/posix_getegid_basic.phpt
michelangelo [Sat, 9 Jun 2012 16:07:11 +0000 (16:07 +0000)]
Adding a test for ext/posix/tests/posix_getegid_basic.phpt

12 years agoMerge branch '5.4'
Gustavo André dos Santos Lopes [Sat, 9 Jun 2012 16:32:18 +0000 (17:32 +0100)]
Merge branch '5.4'

* 5.4:
  Fix bug #62266
  rearrange news
  typo
  NEWS File

12 years agoFix bug #62266
Gustavo André dos Santos Lopes [Sat, 9 Jun 2012 16:29:47 +0000 (17:29 +0100)]
Fix bug #62266

Custom extension segfaults during xmlParseFile with FPM SAPI
because the regular list is not prepared during the MINIT phase
and our custom external entity loader tries to open PHP streams.

12 years agoDisable email notifications for travis-ci
David Soria Parra [Fri, 8 Jun 2012 20:56:02 +0000 (22:56 +0200)]
Disable email notifications for travis-ci

12 years agorearrange news
Stanislav Malyshev [Fri, 8 Jun 2012 20:27:24 +0000 (13:27 -0700)]
rearrange news

12 years agotypo
Stanislav Malyshev [Fri, 8 Jun 2012 08:24:49 +0000 (01:24 -0700)]
typo

12 years agotypo
Stanislav Malyshev [Fri, 8 Jun 2012 08:24:49 +0000 (01:24 -0700)]
typo

12 years agoNEWS File
Pierrick Charron [Fri, 8 Jun 2012 16:02:49 +0000 (18:02 +0200)]
NEWS File

12 years agotypo
Stanislav Malyshev [Fri, 8 Jun 2012 08:24:49 +0000 (01:24 -0700)]
typo

12 years agoMerge branch 'PHP-5.4'
Stanislav Malyshev [Fri, 8 Jun 2012 08:23:07 +0000 (01:23 -0700)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  improve overflow checks
  add NEWS
  fix potential overflow in _php_stream_scandir

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Stanislav Malyshev [Fri, 8 Jun 2012 08:22:46 +0000 (01:22 -0700)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  improve overflow checks
  fix potential overflow in _php_stream_scandir

12 years agoimprove overflow checks
Stanislav Malyshev [Fri, 8 Jun 2012 08:21:37 +0000 (01:21 -0700)]
improve overflow checks

12 years agoadd NEWS
Stanislav Malyshev [Fri, 8 Jun 2012 06:11:28 +0000 (23:11 -0700)]
add NEWS

12 years agoMerge branch 'PHP-5.4'
Stanislav Malyshev [Fri, 8 Jun 2012 06:09:37 +0000 (23:09 -0700)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  fix potential overflow in _php_stream_scandir

12 years agofix potential overflow in _php_stream_scandir
Stanislav Malyshev [Fri, 8 Jun 2012 06:05:23 +0000 (23:05 -0700)]
fix potential overflow in _php_stream_scandir

12 years agofix potential overflow in _php_stream_scandir
Stanislav Malyshev [Fri, 8 Jun 2012 06:05:23 +0000 (23:05 -0700)]
fix potential overflow in _php_stream_scandir

12 years agoMerge branch 'PHP-5.4'
Anatoliy Belsky [Thu, 7 Jun 2012 20:47:00 +0000 (22:47 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  set current versions for libzip and zip ext

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Anatoliy Belsky [Thu, 7 Jun 2012 20:37:32 +0000 (22:37 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  set current versions for libzip and zip ext

12 years agoset current versions for libzip and zip ext
Anatoliy Belsky [Thu, 7 Jun 2012 20:32:03 +0000 (22:32 +0200)]
set current versions for libzip and zip ext

12 years agoupdated NEWS
Anatoliy Belsky [Thu, 7 Jun 2012 19:46:51 +0000 (21:46 +0200)]
updated NEWS

12 years agoMerge branch 'PHP-5.4'
Anatoliy Belsky [Thu, 7 Jun 2012 19:46:12 +0000 (21:46 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  updated NEWS

12 years agoupdated NEWS
Anatoliy Belsky [Thu, 7 Jun 2012 19:45:30 +0000 (21:45 +0200)]
updated NEWS

12 years agoMerge branch 'PHP-5.4'
Anatoliy Belsky [Thu, 7 Jun 2012 19:44:20 +0000 (21:44 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  updated NEWS

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Anatoliy Belsky [Thu, 7 Jun 2012 19:44:08 +0000 (21:44 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  updated NEWS

12 years agoupdated NEWS
Anatoliy Belsky [Thu, 7 Jun 2012 19:43:07 +0000 (21:43 +0200)]
updated NEWS

12 years agoMerge branch 'PHP-5.4'
Anatoliy Belsky [Thu, 7 Jun 2012 19:07:53 +0000 (21:07 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  zip windows fixes
  fixed bc break related to #57905
  fixed a bit overlooked from the last libzip port
  brought the fix for #47667 back
  fixed zip entry freeing
  rechecked the merged libzip, took also the indents from the original to avoid confusion next time
  fixed a double freeing crash
  fixed header include
  initial libzip upgrade patch to 0.10.1
  - BFN

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Anatoliy Belsky [Thu, 7 Jun 2012 19:06:31 +0000 (21:06 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  zip windows fixes
  fixed bc break related to #57905
  fixed a bit overlooked from the last libzip port
  brought the fix for #47667 back
  fixed zip entry freeing
  rechecked the merged libzip, took also the indents from the original to avoid confusion next time
  fixed a double freeing crash
  fixed header include
  initial libzip upgrade patch to 0.10.1
  - BFN

Conflicts:
NEWS

12 years agozip windows fixes
Anatoliy Belsky [Thu, 7 Jun 2012 15:59:57 +0000 (17:59 +0200)]
zip windows fixes

12 years agofixed bc break related to #57905
Anatoliy Belsky [Thu, 7 Jun 2012 14:27:47 +0000 (16:27 +0200)]
fixed bc break related to #57905

12 years agofixed a bit overlooked from the last libzip port
Anatoliy Belsky [Tue, 5 Jun 2012 22:57:12 +0000 (00:57 +0200)]
fixed a bit overlooked from the last libzip port

12 years agobrought the fix for #47667 back
Anatoliy Belsky [Tue, 5 Jun 2012 21:22:27 +0000 (23:22 +0200)]
brought the fix for #47667 back

12 years agofixed zip entry freeing
Anatoliy Belsky [Tue, 5 Jun 2012 20:49:31 +0000 (22:49 +0200)]
fixed zip entry freeing

12 years agorechecked the merged libzip, took also the indents from the original to
Anatoliy Belsky [Tue, 5 Jun 2012 20:11:07 +0000 (22:11 +0200)]
rechecked the merged libzip, took also the indents from the original to
avoid confusion next time

12 years agofixed a double freeing crash
Anatoliy Belsky [Mon, 4 Jun 2012 20:51:31 +0000 (22:51 +0200)]
fixed a double freeing crash

12 years agofixed header include
Anatoliy Belsky [Mon, 4 Jun 2012 20:51:00 +0000 (22:51 +0200)]
fixed header include

12 years agoinitial libzip upgrade patch to 0.10.1
Anatoliy Belsky [Mon, 4 Jun 2012 19:30:04 +0000 (21:30 +0200)]
initial libzip upgrade patch to 0.10.1

12 years agoTravis stop spamming
David Soria Parra [Thu, 7 Jun 2012 17:45:56 +0000 (19:45 +0200)]
Travis stop spamming

12 years agoUPGRADING entry for boolval()
David Soria Parra [Thu, 7 Jun 2012 17:28:06 +0000 (19:28 +0200)]
UPGRADING entry for boolval()

12 years ago- BFN
Felipe Pena [Thu, 7 Jun 2012 17:23:17 +0000 (14:23 -0300)]
- BFN

12 years agoMerge branch 'PHP-5.4'
Felipe Pena [Thu, 7 Jun 2012 17:21:20 +0000 (14:21 -0300)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  - Fixed bug #62227 (Invalid phar stream path causes crash)

12 years ago- Fix merge
Felipe Pena [Thu, 7 Jun 2012 17:21:10 +0000 (14:21 -0300)]
- Fix merge

12 years agoMerge commit '15213768e6cc098ab4e53cacc3b5eb86fa85284a' into PHP-5.3
Felipe Pena [Thu, 7 Jun 2012 17:18:34 +0000 (14:18 -0300)]
Merge commit '15213768e6cc098ab4e53cacc3b5eb86fa85284a' into PHP-5.3

12 years agoRegenerated files
Pierrick Charron [Thu, 7 Jun 2012 16:05:25 +0000 (18:05 +0200)]
Regenerated files

12 years agoMerge branch 'PHP-5.4'
Pierrick Charron [Thu, 7 Jun 2012 16:05:01 +0000 (18:05 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Regenerated files
  Regenerated files

12 years agoRegenerated files
Pierrick Charron [Thu, 7 Jun 2012 16:04:15 +0000 (18:04 +0200)]
Regenerated files

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Pierrick Charron [Thu, 7 Jun 2012 16:02:49 +0000 (18:02 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Regenerated files

12 years agoRegenerated files
Pierrick Charron [Thu, 7 Jun 2012 16:02:27 +0000 (18:02 +0200)]
Regenerated files

12 years agoMerge branch 'PHP-5.4'
Pierrick Charron [Thu, 7 Jun 2012 15:51:56 +0000 (17:51 +0200)]
Merge branch 'PHP-5.4'

* PHP-5.4:
  Fixed bug #51094 (parse_ini_file() with INI_SCANNER_RAW cuts a value that includes a semi-colon)

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Pierrick Charron [Thu, 7 Jun 2012 15:45:43 +0000 (17:45 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fixed bug #51094 (parse_ini_file() with INI_SCANNER_RAW cuts a value that includes a semi-colon)

12 years agoFixed bug #51094 (parse_ini_file() with INI_SCANNER_RAW cuts a value that includes...
Pierrick Charron [Thu, 7 Jun 2012 15:44:20 +0000 (17:44 +0200)]
Fixed bug #51094 (parse_ini_file() with INI_SCANNER_RAW cuts a value that includes a semi-colon)

Modify the scanner to check if the first char of the raw data is an opening " in which case we
need to find the closing one. Otherwise just search for the next end of value char [\r\n;\000]

12 years agoMerge branch 'PHP-5.4'
David Soria Parra [Thu, 7 Jun 2012 07:45:12 +0000 (09:45 +0200)]
Merge branch 'PHP-5.4'

By Till Klampaeckel
* PHP-5.4:
  Don't depend on a fixed path for PHP shebang but use /usr/bin/env (cherry picked from commit 89c5d981603ed4a2a54f86c20cec4f263c58ded6)

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
David Soria Parra [Thu, 7 Jun 2012 07:44:59 +0000 (09:44 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

By Till Klampaeckel
* PHP-5.3:
  Don't depend on a fixed path for PHP shebang but use /usr/bin/env (cherry picked from commit 89c5d981603ed4a2a54f86c20cec4f263c58ded6)

12 years agoDon't depend on a fixed path for PHP shebang but use /usr/bin/env
Till Klampaeckel [Wed, 6 Jun 2012 16:49:47 +0000 (19:49 +0300)]
Don't depend on a fixed path for PHP shebang but use /usr/bin/env
(cherry picked from commit 89c5d981603ed4a2a54f86c20cec4f263c58ded6)

12 years agoMerge branch 'pull-request/60'
David Soria Parra [Thu, 7 Jun 2012 07:38:17 +0000 (09:38 +0200)]
Merge branch 'pull-request/60'

By David Soria Parra (1) and Jille Timmermans (1)
* pull-request/60:
  NEWS entry for boolval()
  Implement boolval() with a test

12 years agoNEWS entry for boolval()
David Soria Parra [Thu, 7 Jun 2012 07:37:26 +0000 (09:37 +0200)]
NEWS entry for boolval()

12 years agoMerge branch 'PHP-5.4'
Xinchen Hui [Thu, 7 Jun 2012 06:42:35 +0000 (14:42 +0800)]
Merge branch 'PHP-5.4'

By Gustavo André dos Santos Lopes (4) and others
via Felipe Pena (2) and Xinchen Hui (2)
* PHP-5.4:
  Remove unused codes
  based on microsoft's description,the direct convert from FILETIME struct to __int64 is unsafe.
  merge 5.3 entries
  restore NEWS
  Fix ext/intl build on ICU < 4.8
  Optimization in ext/intl/msgformat
  Fixed tests in ext/intl
  Changed XFAILed collator_get_sort_key.phpt

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Xinchen Hui [Thu, 7 Jun 2012 06:32:47 +0000 (14:32 +0800)]
Merge branch 'PHP-5.3' into PHP-5.4

By Gustavo André dos Santos Lopes (4) and others
via Felipe Pena (1) and Xinchen Hui (1)
* PHP-5.3:
  Remove unused codes
  based on microsoft's description,the direct convert from FILETIME struct to __int64 is unsafe.
  Fix ext/intl build on ICU < 4.8
  Optimization in ext/intl/msgformat
  Fixed tests in ext/intl
  Changed XFAILed collator_get_sort_key.phpt

12 years agoRemove unused codes
Xinchen Hui [Thu, 7 Jun 2012 06:31:35 +0000 (14:31 +0800)]
Remove unused codes

12 years agobased on microsoft's description,the direct convert from FILETIME struct to __int64...
slayercat [Wed, 23 May 2012 12:30:16 +0000 (20:30 +0800)]
based on microsoft's description,the direct convert from FILETIME struct to __int64 is unsafe.

via http://technet.microsoft.com/en-us/library/ms724284(v=vs.85).aspx

"Do not cast a pointer to a FILETIME structure to either a
ULARGE_INTEGER* or __int64* value because it can cause alignment faults on 64-bit Windows."

12 years agomerge 5.3 entries
Stanislav Malyshev [Thu, 7 Jun 2012 06:20:14 +0000 (23:20 -0700)]
merge 5.3 entries

12 years agorestore NEWS
Stanislav Malyshev [Thu, 7 Jun 2012 06:00:33 +0000 (23:00 -0700)]
restore NEWS

12 years agoImplement boolval() with a test
Jille Timmermans [Wed, 6 Jun 2012 20:34:51 +0000 (22:34 +0200)]
Implement boolval() with a test

12 years agoFix ext/intl build on ICU < 4.8
Gustavo André dos Santos Lopes [Wed, 6 Jun 2012 10:10:00 +0000 (12:10 +0200)]
Fix ext/intl build on ICU < 4.8

12 years agoOptimization in ext/intl/msgformat
Gustavo André dos Santos Lopes [Wed, 6 Jun 2012 09:36:00 +0000 (11:36 +0200)]
Optimization in ext/intl/msgformat

Don't transform the string to make it apostrophe friendly in ICU 4.8+
as that it is now the default.

12 years agoFixed tests in ext/intl
Gustavo André dos Santos Lopes [Tue, 5 Jun 2012 14:47:00 +0000 (16:47 +0200)]
Fixed tests in ext/intl

21 is not a valid value for UNUM_PADDING_POSITION. Changed the test to
use 2 instead.

Remove ICU 4.2- test. No one cares.

12 years ago- Fixed bug #62227 (Invalid phar stream path causes crash)
Felipe Pena [Mon, 4 Jun 2012 23:07:14 +0000 (20:07 -0300)]
- Fixed bug #62227 (Invalid phar stream path causes crash)

12 years agoUpdated UPGRADING for the changes in eb346ef
Gustavo André dos Santos Lopes [Mon, 4 Jun 2012 17:21:39 +0000 (18:21 +0100)]
Updated UPGRADING for the changes in eb346ef

12 years agoChanged XFAILed collator_get_sort_key.phpt
Gustavo André dos Santos Lopes [Mon, 4 Jun 2012 08:18:24 +0000 (10:18 +0200)]
Changed XFAILed collator_get_sort_key.phpt

Ressurected and limited to ICU 4.8 in the hope that the sort keys
will remain stable in more recent ICU versions. I have only tested
with ICU 4.8 so far.

12 years agoMerge branch 'datefmt_tz_cal_interop'
Gustavo André dos Santos Lopes [Sun, 3 Jun 2012 22:08:19 +0000 (23:08 +0100)]
Merge branch 'datefmt_tz_cal_interop'

* datefmt_tz_cal_interop:
  Added and fixed tests given eb346ef
  DateFormat plays nice with Calendar, TimeZone
  Added private constructor to IntlTimeZone.
  Fixed write in constant memory.

12 years agoAdded and fixed tests given eb346ef
Gustavo André dos Santos Lopes [Sun, 3 Jun 2012 22:02:35 +0000 (00:02 +0200)]
Added and fixed tests given eb346ef

12 years agoMerge commit 'e59b6dc0ae803d49c3f620818285f98dfb61fd57'
Felipe Pena [Sun, 3 Jun 2012 22:02:00 +0000 (19:02 -0300)]
Merge commit 'e59b6dc0ae803d49c3f620818285f98dfb61fd57'

12 years agoMerge commit 'e59b6dc0ae803d49c3f620818285f98dfb61fd57' into PHP-5.4
Felipe Pena [Sun, 3 Jun 2012 22:01:50 +0000 (19:01 -0300)]
Merge commit 'e59b6dc0ae803d49c3f620818285f98dfb61fd57' into PHP-5.4

12 years agoDateFormat plays nice with Calendar, TimeZone
Gustavo André dos Santos Lopes [Sun, 3 Jun 2012 22:01:48 +0000 (00:01 +0200)]
DateFormat plays nice with Calendar, TimeZone

The following changes were made:

* The IntlDateFormatter constructor now accepts the usual values
  for its $timezone argument. This includes timezone identifiers,
  IntlTimeZone objects, DateTimeZone objects and NULL. An empty
  string is not accepted. An invalid time zone is no longer accepted
  (it used to use UTC in this case).
* When NULL is passed to IntlDateFormatter, the time zone specified in
  date.timezone is used instead of the ICU default.
* The IntlDateFormatter $calendar argument now accepts also an
  IntlCalendar. In this case, IntlDateFormatter::getCalendar() will
  return false.
* The time zone passed to the IntlDateFormatter is ignored if it is
  NULL and if the calendar passed is an IntlCalendar object -- in this
  case, the IntlCalendar time zone will be used instead. Otherwise,
  the time zone specified in the $timezone argument is used instead.
* Added IntlDateFormatter::getCalendarObject(), which always returns
  the IntlCalendar object that backs the DateFormat, even if a
  constant was passed to the constructor, i.e., if an IntlCalendar
  was not passed to the constructor.
* Added IntlDateFormatter::setTimeZone(). It accepts the usual values
  for time zone arguments. If NULL is passed, the time zone of the
  IntlDateFormatter WILL be overridden with the default time zone,
  even if an IntlCalendar object was passed to the constructor.
* Added IntlDateFormatter::getTimeZone(), which returns the time zone
  that's associated with the DateFormat.
* Depreacated IntlDateFormatter::setTimeZoneId() and made it an alias
  for IntlDateFormatter::setTimeZone(), as the new ::setTimeZone()
  also accepts plain identifiers, besides other types.
  IntlDateFormatter::getTimeZoneId() is not deprecated however.
* IntlDateFormatter::setCalendar() with a constant passed should now
  work correctly. This requires saving the requested locale to the
  constructor.
* Centralized the hacks required to avoid compilation disasters on
  Windows due to some headers being included inside and outside of
  extern "C" blocks.