summaryrefslogtreecommitdiff
path: root/ext/mbstring/mbstring.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Convert string|array union parameter typesMáté Kocsis2019-12-201-1/+1
| | | | | | | | | | | | Closes GH-4995
* | | Remove deprecated behaviour of passing encoding as third parameter in ↵George Peter Banyard2019-12-131-34/+1
| | | | | | | | | | | | | | | | | | mb_strrpos() Merged GH-5011
* | | Expect appropriate parameter type in the first placeChristoph M. Becker2019-10-071-19/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `mb_encode_numericentity()` and `mb_decode_numericentity()` accepted arbitrary zvals as `$convmap`, but ignored anything else than arrays. This appears to be an unresolved relict of their ZPP conversion for PHP 5.3[1]. We now expect an array in the first place. We also expect `count($convmap)` to be a multiple of four (else we throw a `ValueError`), and do no longer special case empty `$convmap`. [1] <http://git.php.net/?p=php-src.git;a=commit;h=1c77f594294aee9d60e7309279c616c01c39ba9d>
* | | Explicitly declare empty parameter listChristoph M. Becker2019-10-061-1/+1
| | |
* | | Add MBString arginfo stubsChristoph M. Becker2019-10-061-330/+1
| | |
* | | Merge branch 'PHP-7.4'Nikita Popov2019-10-061-0/+5
|\ \ \ | |/ /
| * | Add support for mbstring.regex_retry_limitNikita Popov2019-10-061-0/+5
| | | | | | | | | | | | | | | | | | This is very similar to the existing mbstring.regex_stack_limit, but for backtracking. The default value matches pcre.backtrack_limit. Only used on libonig >= 2.8.0.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2019-09-301-20/+10
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #78609: mb_check_encoding() no longer supports stringable objects
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-09-301-20/+10
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #78609: mb_check_encoding() no longer supports stringable objects
| | * Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-09-301-20/+8
| | |\ | | | | | | | | | | | | | | | | * PHP-7.2: Fix #78609: mb_check_encoding() no longer supports stringable objects
| | | * Fix #78609: mb_check_encoding() no longer supports stringable objectsChristoph M. Becker2019-09-301-20/+8
| | | | | | | | | | | | | | | | We apply type juggling for other types than array.
* | | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | | | | | | | | | | | | | Closes GH-4732.
* | | | Remove unused parameterChristoph M. Becker2019-09-211-3/+8
| | | | | | | | | | | | | | | | Cf. <https://bugs.php.net/78579>.
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-09-211-0/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Fix #78579: mb_decode_numericentity: args number inconsistency
| * | | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-09-211-0/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.3: Fix #78579: mb_decode_numericentity: args number inconsistency
| | * | Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-09-211-0/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.2: Fix #78579: mb_decode_numericentity: args number inconsistency
| | | * Fix #78579: mb_decode_numericentity: args number inconsistencyChristoph M. Becker2019-09-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mb_decode_numericentity() accepts a fourth optional parameter, which is unused, however. Since this parameter doesn't do any harm, and to avoid the small BC break, we're keeping this parameter for PHP 7, but adjust the arginfo. For PHP 8, we will remove this parameter.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-07-221-0/+3
|\ \ \ \ | |/ / /
| * | | Deprecate encoding as 3rd param to mb_strrpos()Nikita Popov2019-07-221-0/+3
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-07-011-0/+2
|\ \ \ \ | |/ / /
| * | | Fix unused variable warnings when mbregex disabledNikita Popov2019-07-011-0/+2
| | | |
* | | | Merge branch 'PHP-7.4'Dmitry Stogov2019-06-061-4/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Cheaper checks for exceptions thrown from __toString()
| * | | Cheaper checks for exceptions thrown from __toString()Dmitry Stogov2019-06-061-4/+4
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-051-10/+33
|\ \ \ \ | |/ / /
| * | | Allow exceptions in __toString()Nikita Popov2019-06-051-10/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
* | | | Merge branch 'PHP-7.4'Dmitry Stogov2019-04-181-0/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Fixed compatibility with phpdbg
| * | | Fixed compatibility with phpdbgDmitry Stogov2019-04-181-0/+2
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-04-171-83/+73
|\ \ \ \ | |/ / /
| * | | Fix internal_encoding fallback in mbstringNikita Popov2019-04-171-83/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By introducing a hook that is called whenever one of internal_encoding / input_encoding / output_encoding changes, so that mbstring can adjust it's internal state. This also makes internal_encoding work with zend multibyte.
| * | | Avoid misc uninitialized variable warningsNikita Popov2019-04-121-1/+1
| | | |
* | | | Avoid misc uninitialized variable warningsNikita Popov2019-04-121-1/+1
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-04-121-4/+6
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-04-121-4/+6
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-04-121-4/+6
| | |\ \ | | | |/
| | | * Fix key leaks in mb_convert_encoding()Nikita Popov2019-04-121-4/+6
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-04-111-1/+1
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-04-111-1/+1
| |\ \ \ | | |/ /
| | * | Avoid onig match param unused variable warningNikita Popov2019-04-111-1/+1
| | | |
* | | | Merge branch 'PHP-7.4'Stanislav Malyshev2019-04-011-3/+26
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.4: Unfortunately, travis CI has old oniguruma library Update NEWS & UPGRADING Add fallbacks for older oniguruma versions Add mbstring.regex_stack_limit to php.ini-* Implement RF bug #72777 - ensure stack limits on mbstring functions.
| * | | Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2019-04-011-3/+26
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.3: Update NEWS & UPGRADING Add fallbacks for older oniguruma versions Add mbstring.regex_stack_limit to php.ini-* Implement RF bug #72777 - ensure stack limits on mbstring functions.
| | * | Add fallbacks for older oniguruma versionsStanislav Malyshev2019-03-301-1/+12
| | | |
| | * | Implement RF bug #72777 - ensure stack limits on mbstring functions.Yasuo Ohgaki2019-03-281-3/+15
| | | | | | | | | | | | | | | | | | | | The patch creates new config: mbstring.regex_stack_limit, which defaults to 100000.
* | | | Merge branch 'PHP-7.4'Matteo Beccati2019-03-291-2/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Removed declaration inside for loops
| * | | Removed declaration inside for loopsMatteo Beccati2019-03-291-2/+6
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-221-2/+2
|\ \ \ \ | |/ / /
| * | | Remove HAVE_PCRE/HAVE_BUNDLED_PCRE checksNikita Popov2019-03-221-2/+2
| | | | | | | | | | | | | | | | PCRE is always available.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-02-121-0/+170
|\ \ \ \ | |/ / /
| * | | Implement mb_str_split()legale2019-02-121-0/+170
| | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/mb_str_split
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-02-111-17/+7
|\ \ \ \ | |/ / /
| * | | Unbundle onigurumaNikita Popov2019-02-111-17/+7
| | | | | | | | | | | | | | | | And also switch detection over to pkg-config.