History log of /php-src/ext/xml/xml.c (Results 1 – 25 of 372)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 6b73fcc2 22-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Convert ext/xml fields from int to bool (#12497)


# 98b08c52 22-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Implement request #68325: parse huge option for xml_parser_create (#12256)


# 0e5d6544 20-Oct-2023 George Peter Banyard

ext/xml: Refactor extension to use FCC instead of zvals for handlers (#12340)

To get proper errors and sensible behaviour, as the current behaviour is somewhat insane and part of it should b

ext/xml: Refactor extension to use FCC instead of zvals for handlers (#12340)

To get proper errors and sensible behaviour, as the current behaviour is somewhat insane and part of it should be axed ASAP.

The behaviour is mostly intact with some minor BC breaks which are mentioned in UPGRADING.

Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>

show more ...


# 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


# 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)


# 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


# f55d78e8 16-Sep-2021 Christoph M. Becker

Merge branch 'PHP-7.4' into PHP-8.0

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


# a9661a52 15-Sep-2021 Aliaksandr Bystry

Fix #70962: XML_OPTION_SKIP_WHITE strips embedded whitespace

We must never strip embedded whitespace; we only need to skip values
when that option is set, and make sure that we keep BC r

Fix #70962: XML_OPTION_SKIP_WHITE strips embedded whitespace

We must never strip embedded whitespace; we only need to skip values
when that option is set, and make sure that we keep BC regarding the
different behavior for "cdata" and "complete" elements (for the former,
the whole element is skipped; for the latter only the "value" key).

We also fix erroneous `int` types which should actually be `size_t`.

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-7493.

show more ...

Revision tags: php-8.1.0RC2, php-7.4.24RC1, php-8.0.11RC1, php-8.1.0RC1, php-7.4.23, php-8.0.10, php-7.3.30, php-8.1.0beta3
# 6b1c47a5 13-Aug-2021 Christoph M. Becker

Remove full stop from error message

Error messages shouldn't have a full stop. Period.

Closes GH-7369.

# 6db4b972 13-Aug-2021 Christoph M. Becker

Merge branch 'PHP-8.0'

* PHP-8.0:
Fix return value of xml_parse(_into_struct) for recursive parsing


# 15e5cf85 13-Aug-2021 Christoph M. Becker

Fix return value of xml_parse(_into_struct) for recursive parsing

As of PHP 8.0.0, these functions are supposed to return int, so we
cannot return `false`. Since calling the parser recu

Fix return value of xml_parse(_into_struct) for recursive parsing

As of PHP 8.0.0, these functions are supposed to return int, so we
cannot return `false`. Since calling the parser recursively is a
programmer error, we throw an `Error` in this case.

Cf. <https://github.com/php/php-src/pull/7363>.

show more ...

12345678910>>...15