Skip to content

Investigate new PHP 84 DOM features #72

@veewee

Description

@veewee

Investigation

The General idea : create v4 of this library that requries PHP 8.4+ and make the DOM layer spec compliant + add the newly introduced features.

It won't be possible to support both v3 and v4 in your own repo's, since the type signatures will be different.
At the time of the split, both versions will be compatible with each other in functionality. v3 will not opt in to the spec, v4 will. However v4 will be the path forward: active development will happen on that branch.

Downside : this drops support for all older PHP versions which will be annoying.

Therefore : Both v3 and v4 will be LTS branches.
This will give you enough time to upgrade your own installations and usages of this package.
At the moment, there is no EOL for v3. I'll take into account the maintenance overhead until a reasable period in time.

Feature Request

Add support for new PHP 84 DOM features

Changes

✅ Spec compliance

✅ XLS + Xpath callbacks

✅ XMLReader writer streams

Build beta PHP locally

./buildconf --force
make clean
git clean -fdx Zend/zend_language_*
./configure --without-iconv --enable-mbstring --disable-opcache --with-xsl --with-zlib --with-openssl --prefix=$HOME/php/build
make -j4
make install
$HOME/php/build/bin/php -v

Adding pcov:

git clone https://github.com/krakjoe/pcov.git
cd pcov
$HOME/php/build/bin/phpize
./configure --prefix=$HOME/php/build --with-php-config=$HOME/php/build/bin/php-config --enable-pcov
make
make install

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions