#
ac8db365 |
| 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 ...
|
#
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 ...
|
#
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 ...
|
#
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
|
#
fc11a8ab |
| 12-Oct-2022 |
Máté Kocsis |
Declare XML_SAX_IMPL constant in stubs (#9732)
|
#
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.
|
#
6a5b3f0f |
| 23-Feb-2023 |
George Peter Banyard |
The userland constants do not start with PHP_
|
#
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
|
#
94ee4f98 |
| 24-Aug-2022 |
Bob Weinand |
Port all internally used classes to use default_object_handlers Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
|
#
867c514f |
| 25-Jul-2022 |
Máté Kocsis |
Declare ext/xml constants in stubs (#9131)
|
#
dd62ec06 |
| 13-Mar-2022 |
George Peter Banyard |
Refactor php_next_utf8_char() to use zend_result
|
#
8eee0d61 |
| 15-Dec-2021 |
Tim Starling |
Make strtolower() and strtoupper() do ASCII case conversion (#7506) Implement RFC https://wiki.php.net/rfc/strtolower-ascii
|
#
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 ...
|
#
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 ...
|
#
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.
|
#
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 ...
|
#
80a377e6 |
| 13-Aug-2021 |
Christoph M. Becker |
Fix #81351: xml_parse may fail, but has no error code The fix for bug #73151[1] cured the symptoms, but not the root cause, namely xmlParse() must not be called recursively. Since that
Fix #81351: xml_parse may fail, but has no error code The fix for bug #73151[1] cured the symptoms, but not the root cause, namely xmlParse() must not be called recursively. Since that bugfix also messed up the error handling, we basically revert it (but also simplify the return), and then prevent calling the parser recursively. [1] <https://github.com/php/php-src/pull/2166/commits/f2a8a8c068995a5d780882c556cedd53bce3827d> Co-authored-by: Nikita Popov <nikita.ppv@gmail.com> Closes GH-7363.
show more ...
|