| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add ZVAL_CHAR/RETVAL_CHAR/RETURN_CHAR as a shortcut for using
ZVAL_INTERNED_STRING and ZSTR_CHAR.
Add zend_string_init_fast() as a helper for the empty string /
one char interned string / zend_string_init() pattern.
Also add corresponding ZVAL_STRINGL_FAST etc macros.
Closes GH-5684.
|
|
|
|
| |
Closes GH-5676.
|
|
|
|
|
|
|
|
|
| |
We already document that this is the case, but currently it's only
true if setlocale() has not been called. Make sure ctype_string is
always NULL, even with an explicit "C" locale call, so we can
more efficiently check whether we are in the "C" locale.
Closes GH-5542.
|
|
|
|
|
| |
To make it more obvious that this only refers to the LC_CTYPE
locale.
|
| |
|
|
|
|
| |
Closes GH-5352
|
|
|
|
| |
Closes GH-5278
|
|
|
|
|
|
|
|
| |
Provides the last PCRE error as a human-readable message, similar
to functionality existing in other extensions, such as
json_last_error_msg().
Closes GH-5185.
|
|\
| |
| |
| |
| | |
* PHP-7.4:
Fixed bug #79257
|
| |
| |
| |
| | |
Replace an existing entry for a given name only if we have a match.
|
|\ \
| |/
| |
| |
| |
| | |
* PHP-7.4:
PCRE: Only remember valid UTF-8 if start offset zero
PCRE: Check whether start offset is on char boundary
|
| |
| |
| |
| |
| |
| |
| | |
PCRE only validates the string starting from the start offset
(minus maximum look-behind, but let's ignore that), so we can
only remember that the string is fully valid UTF-8 is the original
start offset is zero.
|
| |
| |
| |
| |
| |
| | |
We need not just the whole string to be UTF-8, but the start
position to be on a character boundary as well. Check this by
looking for a continuation byte.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.4:
Fixed bug #79188
|
| |\
| | |
| | |
| | |
| | | |
* PHP-7.3:
Fixed bug #79188
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fix #78853: preg_match() may return integer > 1
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.3:
Fix #78853: preg_match() may return integer > 1
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Commit 54ebebd[1] optimized the match loop, but for this case it has
been overlooked, that we must only loop if we're doing global matching.
[1] <http://git.php.net/?p=php-src.git;a=commit;h=54ebebd686255c5f124af718c966edb392782d4a>
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fix php_pcre_mutex_free()
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.3:
Fix php_pcre_mutex_free()
|
| | |
| | |
| | |
| | |
| | |
| | | |
We should only set the mutex to NULL if we actually freed it.
Due to missing braces non-main threads may currently set it to
NULL first.
|
|\ \ \
| |/ / |
|
| |\ \
| | |/ |
|
| | |\ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
A new function `pcre_get_compiled_regex_cache_ex()` is introduced,
which allows to compile regexp pattern using the "C" locale instead
of a current locale.
This will be needed to replace setlocale() usage in fileinfo,
which is not thread-safe.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
As ZPP now throws, it makes no sense to specify an explicit return
value.
|
|\ \ \ \
| |/ / / |
|
| |\ \ \
| | |/ / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Print a more informative message that indicates that this is
likely a permission issue, and also indicate that pcre.jit=0
can be used to work around it.
Also automatically disable the JIT, so that this message is
only shown once.
See bug #78630.
|
| | | |
| | | |
| | | |
| | | | |
Closes GH-4732.
|
|\ \ \ \
| |/ / / |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This is a type violation warning, and as such should use TypeError
in PHP 8.
|
| | | |
| | | |
| | | |
| | | | |
Closes GH-4501.
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
This option is considered dangerous and unwanted. To allow for more
graceful migration don't error on now ignored X modifier.
Closes GH-4430.
|
| | | |
|
|\ \ \
| |/ / |
|
| |\ \
| | |/ |
|
| | |
| | |
| | |
| | | |
Related to bug #78163.
|
| | |
| | |
| | |
| | | |
Closes GH-3990.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
by reference
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The `<loccale.h>` header file, setlocale, and localeconv are part of the
standard C89 [1] and on current systems can be used unconditionally.
Since PHP 7.4 requires at least C89 or greater, the `HAVE_LOCALE_H`,
`HAVE_SETLOCALE`, and `HAVE_LOCALECONV` symbols defined by Autoconf in
configure.ac [2] can be ommitted and simplifed.
The bundled libmagic (file) has also been patched already in version
5.35 and up in upstream location so when it will be patched also in
php-src the check for locale.h header is still left in the configure.ac
and in windows headers definition file.
[1] https://port70.net/~nsz/c/c89/c89-draft.html#4.4
[2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
Omit the bundled libmagic files
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.3:
Fix #77827: preg_match does not ignore \r in regex flags
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.2:
Fix #77827: preg_match does not ignore \r in regex flags
|
| | | |
|
| | | |
|