History log of /php-src/Zend/zend_string.h (Results 1 – 25 of 158)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 5c3a6eae 11-Sep-2023 George Peter Banyard

Zend: Remove dependency on zend.h for certain headers (#12166)


# a342138e 05-Jul-2023 George Peter Banyard

Revert "Use binary safe case compare in new zend_string API"

This reverts commit eb5cc1372cf8c6ffda987cc7bc847ed3d9276af9.

A) I'm using the function incorectly
B) Somehow the fu

Revert "Use binary safe case compare in new zend_string API"

This reverts commit eb5cc1372cf8c6ffda987cc7bc847ed3d9276af9.

A) I'm using the function incorectly
B) Somehow the function is undefined although it's used in other zend_string APIs

show more ...


# eb5cc137 05-Jul-2023 George Peter Banyard

Use binary safe case compare in new zend_string API


# b9af9809 10-Apr-2023 George Peter Banyard

Add case insensitive versions of the zend_string_starts_with_* APIs (#11032)


# 61b19ba3 04-Apr-2023 Dmitry Stogov

Revert "Zend/zend_types.h: move `zend_uchar.h` to `zend_char.h`"

This reverts commit 42577c6b6b7577c57c161ee4a74cb193382bf1e0.


# ac3abe45 04-Apr-2023 Dmitry Stogov

Revert "Zend/zend_types.h: move `zend_string` to `zend_string.h`"

This reverts commit 02690fe3c0c35655bc40844780eba0c283a37a2f.


# b5726c2c 17-Mar-2023 Ilija Tovilo

Fix NUL byte in exception string terminating Exception::__toString()

Fixes GH-10810
Closes GH-10873


# 02690fe3 13-Jan-2023 Max Kellermann

Zend/zend_types.h: move `zend_string` to `zend_string.h`

It is now possible to include only `zend_string.h` without
`zend_types.h`.


# 42577c6b 13-Jan-2023 Max Kellermann

Zend/zend_types.h: move `zend_uchar.h` to `zend_char.h`

Prepare to fix the cyclic header dependency from `zend_string.h`.


# 99b86141 02-Feb-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Introduce convenience macros for copying flags that hold when concatenating two strings

This abstracts away, and cleans up, the flag handling for properties of
strings that hold when con

Introduce convenience macros for copying flags that hold when concatenating two strings

This abstracts away, and cleans up, the flag handling for properties of
strings that hold when concatenating two strings if they both hold that
property. (These macros also work with simply copies of strings because
a copy of a string can be considered a concatenation with the empty
string.) This gets rid of some branches and some repetitive code, and
leaves room for adding more flags like these in the future.

show more ...


Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23, php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3
# 9e097822 04-Aug-2022 Ilija Tovilo

Fix lineno for all constant expressions

Fixes GH-8821
Closes GH-8855


# 0b9fb636 27-Jan-2023 George Peter Banyard

Add macro to check zend_string is marked as valid UTF-8


# 2d3427c5 16-Jan-2023 Christoph M. Becker

Revert "#include cleanup (#10216)"

Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816>.

This reverts commit e628c66f9d4173e585081ddef358505433f9a288.


# 0f4d37d0 04-Jan-2023 Levi Morrison

Enforce literals in certain macros (#10111)

These macros are designed only for literals. This is a
standards compliant trick to ensure they are literals.

For example, these are

Enforce literals in certain macros (#10111)

These macros are designed only for literals. This is a
standards compliant trick to ensure they are literals.

For example, these are the same:

"Hello" " world"
"Hello world"

show more ...


# e628c66f 04-Jan-2023 Max Kellermann

#include cleanup (#10216)

Shift header include

In the C file, include the header first so missing #includes are
detected by the compiler, and use lighter header dependencies in

#include cleanup (#10216)

Shift header include

In the C file, include the header first so missing #includes are
detected by the compiler, and use lighter header dependencies in the
header, to speed up compile times.

show more ...


Revision tags: php-8.2.0beta2, php-8.1.9, php-8.0.22, php-8.1.9RC1, php-8.2.0beta1, php-8.0.22RC1
# 55a88f36 13-Jul-2022 Remi Collet

add SensitiveParameter as known string and use it in arginfo

Revision tags: php-8.0.21, php-8.1.8, php-8.2.0alpha3, php-8.1.8RC1, php-8.2.0alpha2, php-8.0.21RC1
# 0ae6a675 12-Jun-2022 George Peter Banyard

Add true as a type (#8326)

RFC: https://wiki.php.net/rfc/true-type

Revision tags: php-8.0.20, php-8.1.7, php-8.2.0alpha1
# b40ae808 07-Jun-2022 George Peter Banyard

Convert iterable into an internal alias for Traversable|array (#7309)

This does a compile time transformation of ``iterable`` into ``Traversable|array`` which simplifies some of the LSP vari

Convert iterable into an internal alias for Traversable|array (#7309)

This does a compile time transformation of ``iterable`` into ``Traversable|array`` which simplifies some of the LSP variance handling.

The arginfo generation script from stubs is updated to produce a union type when it encounters the type ``iterable``
Extension functions which do not regenerate the arginfo, or write them manually are still supported by mimicking the compile time transformation while registering the function.

Type Reflection is preserved for single ``iterable`` (and ``?iterable``) to produce a ReflectionNamedType with name ``iterable``, however usage of ``iterable`` in union types will be converted to ``array|Traversable``

show more ...

Revision tags: php-7.4.30, php-8.1.7RC1, php-8.0.20RC1, php-8.1.6, php-8.0.19, php-8.1.6RC1, php-8.0.19RC1
# c2547ab7 20-Apr-2022 George Peter Banyard

Add some const qualifiers in zend_string/hash (#8304)

Co-authored-by: Levi Morrison <morrison.levi@gmail.com>

Revision tags: php-8.0.18, php-8.1.5, php-7.4.29, php-8.1.5RC1
# b9e895bc 31-Mar-2022 Max Kellermann

Replace memcmp() with zend_string functions (#8216)

* ext/oci8: use zend_string_equals()

Eliminate duplicate code.

* main/php_variables: use zend_string_equals_literal()

Replace memcmp() with zend_string functions (#8216)

* ext/oci8: use zend_string_equals()

Eliminate duplicate code.

* main/php_variables: use zend_string_equals_literal()

Eliminate duplicate code.

* Zend/zend_string: add zend_string_equals_cstr()

Allows eliminating duplicate code.

* Zend, ext/{opcache,standard}, main/output: use zend_string_equals_cstr()

Eliminate duplicate code.

* Zend/zend_string: add zend_string_starts_with()

* ext/{opcache,phar,spl,standard}: use zend_string_starts_with()

This adds missing length checks to several callers, e.g. in
cache_script_in_shared_memory(). This is important when the
zend_string is shorter than the string parameter, when memcmp()
happens to check backwards; this can result in an out-of-bounds memory
access.

show more ...

Revision tags: php-8.0.18RC1, php-8.1.4, php-8.0.17, php-8.1.4RC1, php-8.0.17RC1, php-8.1.3, php-8.0.16, php-7.4.28, php-8.1.3RC1, php-8.0.16RC1, php-8.1.2, php-8.0.15, php-8.1.2RC1, php-8.0.15RC1, php-8.0.14, php-8.1.1, php-7.4.27
# f583c4df 14-Dec-2021 Dmitry Stogov

Use 64-bit multiplication on 64-bit systems

Revision tags: php-8.1.1RC1, php-8.0.14RC1
# 024d5f4b 01-Dec-2021 Tyson Andre

Cache method overrides of ArrayAccess in zend_class_entry

Previously, code such as subclasses of SplFixedArray would check for method
overrides when instantiating the objects.

T

Cache method overrides of ArrayAccess in zend_class_entry

Previously, code such as subclasses of SplFixedArray would check for method
overrides when instantiating the objects.

This optimization was mentioned as a followup to GH-6552

show more ...

Revision tags: php-7.4.27RC1
# c0d890e9 29-Nov-2021 Christoph M. Becker

Merge branch 'PHP-8.1'

* PHP-8.1:
Fix #74604: Out of bounds in php_pcre_replace_impl


# 60717fcd 29-Nov-2021 Christoph M. Becker

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
Fix #74604: Out of bounds in php_pcre_replace_impl


# 816aa203 29-Nov-2021 Christoph M. Becker

Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
Fix #74604: Out of bounds in php_pcre_replace_impl


1234567