History log of /PHP-8.3/ext/xml/xml.c (Results 1 – 25 of 377)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 6c82ca21 13-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-15868: Assertion failure in xml_parse_into_struct after exception

Upon unwinding from an exception, the parser state is not stable, we
should not continue updating the values if a

Fix GH-15868: Assertion failure in xml_parse_into_struct after exception

Upon unwinding from an exception, the parser state is not stable, we
should not continue updating the values if an exception was thrown.

Closes GH-15879.

show more ...

# 77c21cab 04-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-14124: Segmentation fault on unknown address 0x0001ffff8041 with XML extension under certain memory limit (#14126)


# 427c2441 04-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-14124: Segmentation fault on unknown address 0x0001ffff8041 with XML extension under certain memory limit (#14126)

The ltags were not initialized, so when an OOM happens before the ne

Fix GH-14124: Segmentation fault on unknown address 0x0001ffff8041 with XML extension under certain memory limit (#14126)

The ltags were not initialized, so when an OOM happens before the new value is written, uninitialized data is used.

show more ...

# 2bbe4fda 21-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix memory leak when calling xml_parse_into_struct() twice
Fix return type of stub of xml_parse_into_struct()


# 2aea9be3 21-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
Fix memory leak when calling xml_parse_into_struct() twice
Fix return type of stub of xml_parse_into_struct()


# 30f26b58 20-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix memory leak when calling xml_parse_into_struct() twice

Closes GH-12254.

# 6d3433e6 10-Jul-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Remove always-true condition from xml_utf8_decode()

decoder is already checked above

# d5ad7510 08-Jun-2023 George Peter Banyard

More usage of known zend_str instead of C string (#11381)

# 81e59c64 23-Feb-2023 George Peter Banyard

Improve handling of XML options

Mark boolean options as such
Warn on invalid types
Stubs info

Closes GH-10675

# 524391bc 26-Feb-2023 George Peter Banyard

Merge branch 'PHP-8.2'

* PHP-8.2:
Fixed ValueError message in count_chars()
Fixed ValueError message in substr_compare()
The userland constants do not start with PHP_


# f4409110 26-Feb-2023 George Peter Banyard

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
Fixed ValueError message in count_chars()
Fixed ValueError message in substr_compare()
The userland constants do not start wi

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
Fixed ValueError message in count_chars()
Fixed ValueError message in substr_compare()
The userland constants do not start with PHP_

show more ...


# 6a5b3f0f 23-Feb-2023 George Peter Banyard

The userland constants do not start with PHP_

# fc11a8ab 12-Oct-2022 Máté Kocsis

Declare XML_SAX_IMPL constant in stubs (#9732)

# 572f180b 23-Sep-2022 George Peter Banyard

Merge branch 'PHP-8.2'

* PHP-8.2:
Use true return type for XML functions which always return true


# 85d10cc9 14-Sep-2022 George Peter Banyard

Use true return type for XML functions which always return true

And fix xml_parser_set_option() which didn't return false on failure.

Closes GH-9539

# a01dd9fe 14-Sep-2022 Bob Weinand

Revert "Port all internally used classes to use default_object_handlers"

This reverts commit 94ee4f9834743ca74f6c9653863273277ce6c61a.

The commit was a bit too late to be included i

Revert "Port all internally used classes to use default_object_handlers"

This reverts commit 94ee4f9834743ca74f6c9653863273277ce6c61a.

The commit was a bit too late to be included in PHP 8.2 RC1. Given it's a massive ABI break, we decide to postpone the change to PHP 8.3.

show more ...

# 951bd740 13-Sep-2022 George Peter Banyard

Do early returns in xml.c

This reduces nesting clarying what preconditions are needed in each of the handler functions

# 6aef1340 13-Sep-2022 George Peter Banyard

Mark _xml_decode_tag() as taking a const XML_Char*

As this is always the case and this removes unnecessary pointer casts

# 0b8ad94b 13-Sep-2022 George Peter Banyard

Refactor _xml_add_to_info()

Mark char* as const, and compute it's length once to save an expensive strlen() call

Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23
# 94ee4f98 24-Aug-2022 Bob Weinand

Port all internally used classes to use default_object_handlers

Signed-off-by: Bob Weinand <bobwei9@hotmail.com>

Revision tags: php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3, php-8.2.0beta2, php-8.1.9, php-8.0.22
# 867c514f 25-Jul-2022 Máté Kocsis

Declare ext/xml constants in stubs (#9131)

Revision tags: php-8.1.9RC1, php-8.2.0beta1, php-8.0.22RC1, php-8.0.21, php-8.1.8, php-8.2.0alpha3, php-8.1.8RC1, php-8.2.0alpha2, php-8.0.21RC1, php-8.0.20, php-8.1.7, php-8.2.0alpha1, 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, php-8.0.18, php-8.1.5, php-7.4.29, php-8.1.5RC1, php-8.0.18RC1, php-8.1.4, php-8.0.17
# dd62ec06 13-Mar-2022 George Peter Banyard

Refactor php_next_utf8_char() to use zend_result

Revision tags: 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
# 8eee0d61 15-Dec-2021 Tim Starling

Make strtolower() and strtoupper() do ASCII case conversion (#7506)

Implement RFC https://wiki.php.net/rfc/strtolower-ascii

Revision tags: php-8.1.1, php-7.4.27, php-8.1.1RC1, php-8.0.14RC1, php-7.4.27RC1, php-8.1.0, php-8.0.13, php-7.4.26, php-7.3.33, php-8.1.0RC6, php-7.4.26RC1, php-8.0.13RC1, php-8.1.0RC5, php-7.3.32, php-7.4.25, php-8.0.12, php-8.1.0RC4, php-8.0.12RC1, php-7.4.25RC1
# da0c7050 29-Sep-2021 Tim Starling

Add upper case functions to zend_operators.c and use them (#7521)

Add a family of upper case conversion functions to zend_operators.c,
by analogy with the lower case functions.

Add upper case functions to zend_operators.c and use them (#7521)

Add a family of upper case conversion functions to zend_operators.c,
by analogy with the lower case functions.

Move the single-character conversion macros to the header so that they
can be used as a locale-independent replacement for tolower() and
toupper().

Factor out the ugly bits of the SSE2 case conversion so that the four
functions that use it are easy to read and processor-independent.

Use the new ASCII upper case functions in ext/xml, ext/pdo_dblib and as
an optimization for strtoupper() when the locale is "C".

show more ...

Revision tags: php-8.1.0RC3, php-8.0.11, php-7.4.24, php-7.3.31
# cc5ec597 16-Sep-2021 Christoph M. Becker

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
Fix #70962: XML_OPTION_SKIP_WHITE strips embedded whitespace


12345678910>>...16