Nikita Popov
a8239ff232
Deprecate mbstring.func_overload
2017-02-03 21:02:52 +01:00
Nikita Popov
2df9346e7f
Deprecate mb_parse_str() without second argument
2017-02-03 18:52:57 +01:00
Joe Watkins
f9a435a06d
Merge branch 'pull-request/1094'
...
* pull-request/1094:
added php_mb_check_code_point for mb_substitute_character
news entry for PR #1094
2017-01-04 06:57:34 +00:00
Xinchen Hui
bc6b17148b
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Fixed bug #73646 (mb_ereg_search_init null pointer dereference)
2016-12-09 15:56:41 +08:00
Xinchen Hui
6a43c61bcd
Fixed bug #73646 (mb_ereg_search_init null pointer dereference)
2016-12-09 15:55:07 +08:00
Anatol Belski
6a34065bf0
fix tests
2016-11-25 23:04:15 +01:00
Anatol Belski
2a76d2282a
upgrade to Oniguruma 6.1.2
2016-11-25 22:00:53 +01:00
Nikita Popov
5af586bec5
Remove more PHP 6 leftovers from tests
2016-11-24 22:39:39 +01:00
Nikita Popov
45f7b2bcc8
Fix CRLF line-endings in tests
...
Also fix a single instance of CRLF in ibase_query.c.
2016-11-20 22:31:24 +01:00
Pedro Magalhães
9c5af4e4cb
Remove the b prefix from literals on unrelated tests
2016-11-20 21:11:53 +01:00
Xinchen Hui
3a8a99e662
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Fixed bug #73532 (Null pointer dereference in mb_eregi)
2016-11-16 15:05:22 +08:00
Xinchen Hui
229024c725
Fixed bug #73532 (Null pointer dereference in mb_eregi)
2016-11-16 15:05:04 +08:00
Yasuo Ohgaki
2bd34885da
Add tests
2016-10-15 21:03:14 +09:00
Yasuo Ohgaki
06b20d973a
Fix test and cleanup code a little
2016-10-15 20:51:34 +09:00
Yasuo Ohgaki
4af00876f6
mb_check_encoding()/mb_convert_encoding() - Improve and add recursion detection.
2016-10-15 16:52:17 +09:00
Christoph M. Becker
fcc6f2df59
Merge branch 'PHP-7.1'
2016-09-06 14:15:05 +02:00
Christoph M. Becker
68d3501381
Merge branch 'pull-request/2115' into PHP-7.1
2016-09-06 14:14:23 +02:00
Yasuo Ohgaki
96e59a200e
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Fixed Bug #66964 mb_convert_variables() cannot detect recursion
2016-09-06 18:22:04 +09:00
Yasuo Ohgaki
2605ceeaca
Added array parameter support to mb_convert_encoding()
2016-09-06 18:20:24 +09:00
Yasuo Ohgaki
012232b9a4
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed Bug #66964 mb_convert_variables() cannot detect recursion
2016-09-06 16:42:07 +09:00
Yasuo Ohgaki
6f1a52bfbb
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed Bug #66964 mb_convert_variables() cannot detect recursion
2016-09-06 16:41:52 +09:00
Yasuo Ohgaki
a25f6f89cd
Fixed Bug #66964 mb_convert_variables() cannot detect recursion
2016-09-06 16:05:34 +09:00
Christoph M. Becker
880c13cd03
Merge branch 'PHP-7.1'
2016-09-04 16:53:45 +02:00
Christoph M. Becker
94b66b8793
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-04 16:47:55 +02:00
Christoph M. Becker
7f97d63130
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-04 16:39:45 +02:00
Christoph M. Becker
b7259b71b4
Fix #72994 : mbc_to_code() out of bounds read
...
We're backporting commit 999a3553
to the still supported PHP 5.6.
2016-09-04 16:37:06 +02:00
Christoph M. Becker
727b422ad9
Fix #72948 : Uncatchable "Catchable" fatal error for class to string conversions
...
E_RECOVERABLE errors are reported as "Catchable fatal error". This is
misleading, because they actually can't be caught via try-catch statements.
Therefore we change the wording to "Recoverable fatal error" as suggested by
Nikita.
2016-09-03 13:05:37 +02:00
Yasuo Ohgaki
b651b96738
Allow array input for mb_check_encoding()
2016-09-02 14:18:34 +09:00
Christoph M. Becker
4c75b00025
Merge branch 'PHP-7.1'
2016-08-30 15:13:30 +02:00
Christoph M. Becker
ecdef60d00
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-30 15:12:49 +02:00
Christoph M. Becker
972302d2f0
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-30 15:01:12 +02:00
Christoph M. Becker
2f10db36af
Fix #66797 : mb_substr only takes 32-bit signed integer
...
`from` and `len` are `long`, but get passed to mbfl_substr() which expects
`int`s. Therefore we clamp the values to avoid the undefined conversion
behavior.
2016-08-30 14:52:47 +02:00
Masaki Kagaya
f49a5a67cf
delete duplicate functions
2016-08-14 06:29:23 +09:00
Yasuo Ohgaki
850a0b5fb6
Merge pull request #1098
...
Fix bug #69086 enhancement for mb_convert_encoding
2016-08-10 14:39:23 +09:00
Yasuo Ohgaki
8ad4ef98b6
pull-request/1099
...
Request #65081 - implemeting mb_scrub
2016-08-10 14:09:48 +09:00
Yasuo Ohgaki
087dcd9381
pull-request/1100
...
Request #65081 mb_chr() and mb_ord()
Added test cases and little optimization.
2016-08-10 11:32:10 +09:00
ju1ius
03d03243fa
Fix #72711 : mb_ereg
does not clear the $regs
parameter on failure
...
When `mb_ereg` failed to match, it didn't update the `$regs` argument.
Now it will always set it to the empty array.
2016-08-05 13:22:10 +02:00
Christoph M. Becker
9c2814313d
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-30 12:04:12 +02:00
Christoph M. Becker
e5940aa795
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-30 12:01:29 +02:00
ju1ius
1d32b80903
fixes bad address given to onig_error_code_to_str
...
Closes bug #72710
(cherry picked from commit 0fb7eb6723
)
2016-07-30 11:46:34 +02:00
Christoph M. Becker
de755310b4
Merge branch 'PHP-7.0' into PHP-7.1
...
# Resolved conflicts:
# ext/mbstring/php_mbregex.c
2016-07-28 15:50:41 +02:00
Christoph M. Becker
805dc0ea47
Merge branch 'PHP-5.6' into PHP-7.0
...
# Resolved conflicts:
# ext/mbstring/php_mbregex.c
2016-07-28 15:26:29 +02:00
Christoph M. Becker
ee6900c3de
Fix #72694 : mb_ereg_search_setpos does not accept a string's last position
...
Setting the search position immediately behind the last character should be
allowed, so we fix this off-by-one error.
2016-07-28 15:21:48 +02:00
Christoph M. Becker
6aaef1ed34
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-28 14:09:29 +02:00
Christoph M. Becker
a621023168
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-28 14:03:40 +02:00
Christoph M. Becker
56cdaecb28
Fix #72693 : mb_ereg_search increments search position when a match zero-width
...
That's caused by an off-by-one error, which we fix.
2016-07-28 13:57:38 +02:00
Christoph M. Becker
db69ea32cb
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-28 13:19:15 +02:00
Christoph M. Becker
18a37eeeec
Merge branch 'PHP-5.6' into PHP-7.0
...
# Resolved conflicts:
# ext/mbstring/php_mbregex.c
2016-07-28 13:12:40 +02:00
Christoph M. Becker
d276e6a838
Fix #72691 : mb_ereg_search raises a warning if a match zero-width
...
That warning doesn't make sense (PCRE doesn't throw such a warning either),
so we remove it.
2016-07-28 13:07:05 +02:00
Masaki Kagaya
69f468239b
add test
2016-07-17 14:19:45 +02:00