[php-src] PR #13170: Fix argument type of simplexml_import_dom
| From: | nielsdos | Date: | Tue, 16 Jan 2024 21:35:07 +0000 |
| Subject: | [php-src] PR #13170: Fix argument type of simplexml_import_dom | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24796@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13170
Author: nielsdos
It needs to be "object".
This is because first- and third-party extension can register custom node types using
php_libxml_register_export. So we don't know upfront what types can be expected.
This also changes the error to a ValueError, which is consistent with ext/xsl.
Sending this fix to master because of potential BC breaks.