History log of /php-src/ext/dom/html5_parser.c (Results 1 – 10 of 10)
Revision Date Author Comments
# 11accb5c 25-Jun-2024 Arnaud Le Blanc

Preferably include from build dir (#13516)

* Include from build dir first

This fixes out of tree builds by ensuring that configure artifacts are included
from the build dir.

Preferably include from build dir (#13516)

* Include from build dir first

This fixes out of tree builds by ensuring that configure artifacts are included
from the build dir.

Before, out of tree builds would preferably include files from the src dir, as
the include path was defined as follows (ignoring includes from ext/ and sapi/) :

-I$(top_builddir)/main
-I$(top_srcdir)
-I$(top_builddir)/TSRM
-I$(top_builddir)/Zend
-I$(top_srcdir)/main
-I$(top_srcdir)/Zend
-I$(top_srcdir)/TSRM
-I$(top_builddir)/

As a result, an out of tree build would include configure artifacts such as
`main/php_config.h` from the src dir.

After this change, the include path is defined as follows:

-I$(top_builddir)/main
-I$(top_builddir)
-I$(top_srcdir)/main
-I$(top_srcdir)
-I$(top_builddir)/TSRM
-I$(top_builddir)/Zend
-I$(top_srcdir)/Zend
-I$(top_srcdir)/TSRM

* Fix extension include path for out of tree builds

* Include config.h with the brackets form

`#include "config.h"` searches in the directory containing the including-file
before any other include path. This can include the wrong config.h when building
out of tree and a config.h exists in the source tree.

Using `#include <config.h>` uses exclusively the include path, and gives
priority to the build dir.

show more ...


# b0da6ed6 28-Apr-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Be specific for the namespace of the id attribute (#14060)


# a86e6687 27-Apr-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Improve performance of text node allocation by marking the text node construction as always inline


# acdf63b9 27-Apr-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Get rid of error gotos in HTML5 parse conversion


# ce2dd0b2 01-Apr-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix potential NULL pointer argument to memcpy (#13859)

This is only possible when the length is 0, but memcpy doesn't like NULL
pointers, as UBSAN trips over it.


# d57e7a92 09-Mar-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Use BAD_CAST consistently


# 14b6c981 09-Mar-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

[RFC] Add a way to opt-in ext/dom spec compliance (#13031)

RFC: https://wiki.php.net/rfc/opt_in_dom_spec_compliance


# 89ea24f6 13-Jan-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Give anonymous dom structs a name (#13135)


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

Optimizations for HTML 5 loading (#12896)

* Fix inverted NULL and add dictionary

* Avoid useless error processing if no reporting is set

* Avoid double work while processin

Optimizations for HTML 5 loading (#12896)

* Fix inverted NULL and add dictionary

* Avoid useless error processing if no reporting is set

* Avoid double work while processing attributes and use fast text instantiation

show more ...


# 1492be52 13-Nov-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

[RFC] DOM HTML5 parsing and serialization support (#12111)