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

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-15837: Segmentation fault in ext/simplexml/simplexml.c


# b5834c12 11-Sep-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-15837: Segmentation fault in ext/simplexml/simplexml.c

We should check if the iterator data is still valid, because if it
isn't, then the type info is UNDEF, but the pointer value

Fix GH-15837: Segmentation fault in ext/simplexml/simplexml.c

We should check if the iterator data is still valid, because if it
isn't, then the type info is UNDEF, but the pointer value may be
dangling.

Closes GH-15841.

show more ...

# 20866b37 01-Jul-2024 David Carlier

Merge branch 'PHP-8.2' into PHP-8.3


# 2edf12e8 23-Jun-2024 David Carlier

Fix GH-14638: null dereference after XML parsing failure.

object document is null if the parsing had failed prior to cast to
string.

# f75931ad 12-Dec-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-12929: SimpleXMLElement with stream_wrapper_register can segfault

Move SimpleXML invalidation code after node checks

This is safe, i.e. the tree hasn't been modified yet, bec

Fix GH-12929: SimpleXMLElement with stream_wrapper_register can segfault

Move SimpleXML invalidation code after node checks

This is safe, i.e. the tree hasn't been modified yet, because either we
didn't call a libxml modification function yet, or xmlNewChild is called
with a NULL pointer, which makes it bail out and return NULL.

Closes GH-12947.

show more ...

# 4fc336c7 17-Dec-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix getting the address of an uninitialized property of a SimpleXMLElement resulting in a crash
Fix GH-12962: Double free of init_f

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix getting the address of an uninitialized property of a SimpleXMLElement resulting in a crash
Fix GH-12962: Double free of init_file in phpdbg_prompt.c

show more ...


# abf4c116 12-Dec-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix getting the address of an uninitialized property of a SimpleXMLElement resulting in a crash

Closes GH-12945.

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

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Apply SimpleXML iterator fixes only on master


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

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
Apply SimpleXML iterator fixes only on master


# b842ea4f 28-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Apply SimpleXML iterator fixes only on master

Many methods in SimpleXML reset the iterator when called. This has the
consequence that mixing these operations with loops can cause infinit

Apply SimpleXML iterator fixes only on master

Many methods in SimpleXML reset the iterator when called. This has the
consequence that mixing these operations with loops can cause infinite
loops, or the loss of iteration data.
Some people may however rely on the resetting behaviour. To prevent
unintended breaks in stable branches, let's only apply the fix to master.

This reverts GH-12193, GH-12229, GG-12247 for stable branches while
keeping them on master, adding a note in UPGRADING as well.

show more ...

# 190a5353 25-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-12167 and GH-12169: Unable to get comment or processing instruction contents in SimpleXML


# 9c37a02c 25-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
Fix GH-12167 and GH-12169: Unable to get comment or processing instruction contents in SimpleXML


# 82a84d0b 23-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-12167 and GH-12169: Unable to get comment or processing instruction contents in SimpleXML

Closes GH-12289.

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

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-12215: Module entry being overwritten causes type errors in ext/dom (<= PHP 8.3)
Fix bug #55098: SimpleXML iteration produce

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-12215: Module entry being overwritten causes type errors in ext/dom (<= PHP 8.3)
Fix bug #55098: SimpleXML iteration produces infinite loop

show more ...


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

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
Fix GH-12215: Module entry being overwritten causes type errors in ext/dom (<= PHP 8.3)
Fix bug #55098: SimpleXML iteration produce

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
Fix GH-12215: Module entry being overwritten causes type errors in ext/dom (<= PHP 8.3)
Fix bug #55098: SimpleXML iteration produces infinite loop

show more ...


# 1a4e401b 19-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix bug #55098: SimpleXML iteration produces infinite loop

Closes GH-12247.

# 673babed 17-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-12208: SimpleXML infinite loop when a cast is used inside a foreach


# f4f34b6e 17-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
Fix GH-12208: SimpleXML infinite loop when a cast is used inside a foreach


# 486276f0 17-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-12208: SimpleXML infinite loop when a cast is used inside a foreach

Closes GH-12229.

# 4bb27e2d 16-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-12223: Entity reference produces infinite loop in var_dump/print_r
Fix GH-12192: SimpleXML infinite loop when getName() is c

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-12223: Entity reference produces infinite loop in var_dump/print_r
Fix GH-12192: SimpleXML infinite loop when getName() is called within foreach
Fix GH-12186: segfault copying/cloning a finalized HashContext

show more ...


# 5df473d2 16-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
Fix GH-12223: Entity reference produces infinite loop in var_dump/print_r
Fix GH-12192: SimpleXML infinite loop when getName() is c

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
Fix GH-12223: Entity reference produces infinite loop in var_dump/print_r
Fix GH-12192: SimpleXML infinite loop when getName() is called within foreach
Fix GH-12186: segfault copying/cloning a finalized HashContext

show more ...


# 39a9e561 16-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-12223: Entity reference produces infinite loop in var_dump/print_r

Closes GH-12223.

# 4d888cf5 12-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-12192: SimpleXML infinite loop when getName() is called within foreach

This happens because getName() resets the iterator to the start because
it overwrites the iterator data.

Fix GH-12192: SimpleXML infinite loop when getName() is called within foreach

This happens because getName() resets the iterator to the start because
it overwrites the iterator data.
We add a version of get_first_node that does not overwrite the iterator
data.

Closes GH-12193.

show more ...

# 60b1673b 14-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
Fix GH-12170: Can't use xpath with comments in SimpleXML


# b3bce232 14-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
Fix GH-12170: Can't use xpath with comments in SimpleXML


12345678910>>...22