Gustavo Lopes
b9eae3d67c
Fix handling of several uinitialized intl objects
...
Master specific changes. Not having this in the merge commit helps
porting to pecl/intl
2012-08-22 22:54:43 +02:00
Gustavo Lopes
fcd4420dbf
Merge branch 'PHP-5.4'
...
* PHP-5.4:
Fix handling of several uinitialized intl objects
Fix handling of several uinitialized intl objects
- Fix NEWS
- BFN
Conflicts:
ext/intl/dateformat/dateformat.c
2012-08-22 22:53:07 +02:00
Gustavo Lopes
cd1f45b3be
Fix handling of several uinitialized intl objects
...
PHP 5.4 specific changes. Not having this in the merge commit helps
porting to pecl/intl
2012-08-22 22:38:31 +02:00
Gustavo Lopes
87803ace94
Merge branch 'PHP-5.3' into PHP-5.4
...
* PHP-5.3:
Fix handling of several uinitialized intl objects
2012-08-22 22:37:52 +02:00
Gustavo Lopes
a5d0c1e21b
Fix handling of several uinitialized intl objects
2012-08-22 22:32:51 +02:00
Xinchen Hui
f8d9cabd11
Merge branch 'PHP-5.4'
2012-08-21 15:23:53 +08:00
Xinchen Hui
c1284f21a7
Merge branch 'PHP-5.3' into PHP-5.4
2012-08-21 15:23:09 +08:00
Reeze Xia
0cdc1f5626
Move test files to tests dir
...
There are 7 files duplicated, so those files was deleted
2012-08-21 14:32:39 +08:00
Anatoliy Belsky
7cf9ac1420
Merge branch 'PHP-5.4'
...
* PHP-5.4:
More intl tests extracted from symfony
Update version numbers to 5.4.7-dev.
Conflicts:
configure.in
main/php_version.h
2012-08-17 20:36:07 +02:00
Anatoliy Belsky
15e31d5720
Merge branch 'PHP-5.3' into PHP-5.4
...
* PHP-5.3:
More intl tests extracted from symfony
2012-08-17 20:31:00 +02:00
Matt Ficken
1a23d42909
More intl tests extracted from symfony
2012-08-17 20:29:08 +02:00
Reeze Xia
80044a0879
Fix intl tests failed because of missing skipif section
2012-08-15 01:03:56 +08:00
Anatoliy Belsky
7e2d550e88
Merge branch 'PHP-5.4'
...
* PHP-5.4:
Added the intl tests extracted from Symfony. These are making the intl ext crash with ICU at least 4.6, but probably with earlier versions too.
2012-08-06 14:13:25 +02:00
Anatoliy Belsky
55b82abe00
Merge branch 'PHP-5.3' into PHP-5.4
...
* PHP-5.3:
Added the intl tests extracted from Symfony. These are making the intl ext crash with ICU at least 4.6, but probably with earlier versions too.
2012-08-06 14:12:04 +02:00
Matt Ficken
ed793b2a3f
Added the intl tests extracted from Symfony. These are making the intl ext crash with ICU at least 4.6, but probably with earlier versions too.
2012-08-06 14:07:42 +02:00
Xinchen Hui
c1a7369a40
Merge branch 'PHP-5.4'
2012-08-02 19:33:58 +08:00
Xinchen Hui
cbf1db38f7
Merge branch 'PHP-5.3' into PHP-5.4
2012-08-02 19:33:27 +08:00
Xinchen Hui
2b6ac9e1a0
Fix test, wrong exepct rule used
2012-08-02 19:31:34 +08:00
Gustavo André dos Santos Lopes
06e06f026d
Merge branch '5.4'
...
* 5.4:
Fix test title and limit it to ICU >= 4.8
Remove executable bit from files
Limit test to ICU 49
Remove executable bit from files
2012-07-30 11:04:48 +02:00
Gustavo André dos Santos Lopes
86ca788cc7
Fix test title and limit it to ICU >= 4.8
2012-07-30 11:04:10 +02:00
Gustavo André dos Santos Lopes
f8e693248f
Remove executable bit from files
2012-07-30 10:32:27 +02:00
Gustavo André dos Santos Lopes
dec7bad635
Merge branch '5.3' into 5.4
...
* 5.3:
Limit test to ICU 49
Remove executable bit from files
2012-07-30 10:31:10 +02:00
Gustavo André dos Santos Lopes
7e3e1837c8
Limit test to ICU 49
2012-07-30 10:27:41 +02:00
Gustavo André dos Santos Lopes
9762609cec
Remove executable bit from files
2012-07-30 10:25:17 +02:00
Gustavo André dos Santos Lopes
f356be68c2
ini intl.explicit_cleanup -> INTL_EXPLICIT_CLEANUP
...
Added an environment variable and removed the ini setting
intl.explicit_cleanup for calling u_cleanup()
2012-07-24 15:13:02 +02:00
Gustavo Lopes
ae3a827bf9
Leak caused by wrong and unreachable cleanup
2012-07-23 17:00:52 +02:00
Gustavo Lopes
01004c6abb
Fixed leak in RuleBasedBreakIterator constructor
...
The leak occurred in case of error.
2012-07-23 16:51:28 +02:00
Gustavo Lopes
d8d5f9a9f5
Fixed function name
2012-07-23 16:46:28 +02:00
Gustavo Lopes
c052b9c99a
Do not fetch default locale once on minit or rinit
...
The default locale is now requested to ICU when it's needed by using
intl_get_default_locale().
2012-07-23 16:38:27 +02:00
Gustavo Lopes
0dfcc3e798
Add ini setting intl.explicit_cleanup
...
This is to help with looking for leaks. If set to true, this ini
setting forces a call to u_cleanup() on module shutdown.
2012-07-23 16:36:24 +02:00
Gustavo André dos Santos Lopes
f3f824823d
Duplicate test for ICU 49
...
The output in ICU < 49 actually seems wrong here; ICU 49 seems to
fix the data.
2012-07-23 02:08:12 +02:00
Gustavo André dos Santos Lopes
99e48d3a57
Merge branch 'datefmt_tz_cal_interop'
...
* datefmt_tz_cal_interop:
Readded accidentally removed line
Added IntlDateFormatter::formatObject(). Refactor
Refactored internal_get_timestamp()
Unified zval -> UDate conversions
2012-07-22 04:22:48 +02:00
Gustavo André dos Santos Lopes
2498c90c71
Readded accidentally removed line
2012-07-22 04:22:23 +02:00
Gustavo André dos Santos Lopes
2f0775b999
Added IntlDateFormatter::formatObject(). Refactor
...
To better support IntlCalendar, added this function:
string IntlDateFormatter::formatObject(IntlCalendar|DateTime $obj [,
array|int|string $format = null [, string $locale = null).
$format is either of the constants IntlDateFormatter::FULL, etc., in
which case this format applies to both the date and the time, an array
in the form array($dateFormat, $timeFormat), or a string with the
SimpleDateFormat pattern.
This uses both the Calendar type and the timezone of the passed object
to configure the formatter (a GregorianCalendar is forced for
DateTime).
Some stuff was moved around and slighlt modified to allow for more code
reuse.
2012-07-22 04:22:23 +02:00
Felipe Pena
f94051ea11
- Fix conflict
2012-07-14 12:23:24 -03:00
Felipe Pena
0bff7cfadd
- Fixed bug #62565 (Crashes due non-initialized internal properties_table)
2012-07-14 12:16:16 -03:00
Felipe Pena
44cdcb7fdb
Merge branch 'PHP-5.4'
...
* PHP-5.4:
- Fixed bug #62564 (Extending MessageFormatter and adding property causes crash)
2012-07-14 11:37:20 -03:00
Felipe Pena
8b093dee21
- Fixed bug #62564 (Extending MessageFormatter and adding property causes crash)
2012-07-14 11:37:08 -03:00
Gustavo André dos Santos Lopes
46629e35ff
Refactored internal_get_timestamp()
...
Added bounds checking for 32-bit ints.
Do not fetch array elements that ::parse() generates but that
::format() does not actually care about.y
2012-07-02 00:26:38 +02:00
Gustavo André dos Santos Lopes
2416719fb1
Unified zval -> UDate conversions
...
Now IntlDateFormatter::format() also accepts IntlCalendar objects.
Code is shared in MessageFormatter and IntlDateFormatter.
2012-07-02 00:24:54 +02:00
Stanislav Malyshev
a3322f8927
Merge branch 'PHP-5.4'
...
* PHP-5.4:
Fixed the common misspelling of the word occurred (occured -> occurred)
2012-06-30 17:00:25 -07:00
Marc Easen
896ac689c9
Fixed the common misspelling of the word occurred (occured -> occurred)
2012-06-30 16:54:03 -07:00
Felipe Pena
8d264dba93
- Fixed build
2012-06-27 09:01:02 -03:00
Gustavo André dos Santos Lopes
75964450ed
Merge branch 'break_iterator'
...
* break_iterator:
Fix typo in error message
BreakIterator: fix compat with old ICU versions
Fix build error one ext/intl
BreakIterator::getPartsIterator: new optional arg
Added IntlCodePointBreakIterator.
Add Intl prefix to BreakIterator/RuleBasedBI
Remove trailing space
Replaced zend_parse_method_params with plain zpp
BreakIter: Removed getAvailableLocales/getHashCode
Change in BreakIterator::getPartsIterator()
BreakIterator: add rules status constants
Tests for (RuleBased)BreakIterator.
BreakIterator and RuleBasedBreakiterator added
2012-06-25 12:11:49 +02:00
Gustavo André dos Santos Lopes
0df73a85e1
Fix typo in error message
2012-06-25 12:06:31 +02:00
Gustavo André dos Santos Lopes
d8b067e66f
BreakIterator: fix compat with old ICU versions
2012-06-25 12:05:13 +02:00
Gustavo André dos Santos Lopes
5a9dca458a
Fix build error one ext/intl
2012-06-25 11:53:20 +02:00
Gustavo André dos Santos Lopes
715e59ad82
Duplicate test for ICU 49
...
The output in ICU < 49 actually seems wrong here; ICU 49 seems to
fix the data.
2012-06-25 11:13:23 +02:00
Gustavo André dos Santos Lopes
9c5074a484
Fix undeclared intl_locale_get_default()
...
This was causing segfaults at least in the resourcebundle
constructor.
Also moved intl_locale_get_default() to a more central location
and fixed a constness warning in resourcebundle_ctor().
2012-06-25 10:59:58 +02:00
Gustavo André dos Santos Lopes
77daa3482d
BreakIterator::getPartsIterator: new optional arg
...
Can take one of:
* IntlPartsIterator::KEY_SEQUENTIAL (keys are 0, 1, ...)
* IntlPartsIterator::KEY_LEFT (keys are left boundaries)
* IntlPartsIterator::KEY_LEFT (keys are right boundaries)
The default is IntlPartsIterator::KEY_SEQUENTIAL (the previous behavior).
2012-06-22 18:52:06 +02:00