summaryrefslogtreecommitdiff
path: root/ext/dom
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Remove superfluous SKIPIF sections in more testsGabriel Caruso2018-02-041-1/+0
| | |
* | | Trailing whitespacesGabriel Caruso2018-01-031-2/+2
| | | | | | | | | | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* | | year++Xinchen Hui2018-01-0237-37/+37
| | |
* | | Move zend_object_iterator_funcs structures into read-only data segmentDmitry Stogov2017-12-141-1/+1
| | |
* | | Remove outdated TODO filesPeter Kokot2017-12-091-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some extensions included TODO files that has been present for several years in the repository tree without changes. This included: - ext/phar - ext/intl - ext/zip - ext/soap - ext/pdo - ext/spl - ext/dom - ext/gmp - ext/xmlwriter - ext/xmlreader ext/phar feature request has been created instead, and for others it would be better to use wiki and RFC workflow instead based on current feature requests and further PHP development requirements. [ci skip]
* | | Make sure properties are initialized before cloningNikita Popov2017-11-251-8/+6
| | | | | | | | | | | | | | | | | | Now that they are not memset, they need to be explicitly intialized, as zend_objects_clone_members() destroys the old property values first.
* | | Add zend_object_alloc() APINikita Popov2017-11-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using ecalloc() to create objects is expensive, because the dynamic-size memset() is unreasonably slow. Make sure we only zero the main object structure with known size, as the properties are intialized separately anyway. Technically we do not need to zero the embedded zend_object structure either, but as long as the memset argument is constant, a couple more bytes don't really matter.
* | | Use interned strings for "magic" property of internal classes. (not copyied ↵Dmitry Stogov2017-11-011-1/+4
| | | | | | | | | | | | into SHM)
* | | Merge branch 'master' into rc_debugDmitry Stogov2017-10-303-4/+23
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (26 commits) Better fix for bug #75451 (Assertion fails while foreach on empty xpath query) Catch with the latest AppVeyor unzip errors Fixed type inference Fix bug #75453 Incorrect reflection on ibase_connect and ibase_pconnect Fix compiler warnings We don't use a specific model for a MAKERNOTE so remove these checks that doesn't do anything anyway Remove these old comments, as for the TODO, there is already a FR for this Re-enable AppVeyor cache make sure run-tests reports exit status upon prerequisite error Remove implicit constants from test case Fix invalid read in zend_use_undefined_constant() Fix invalid read in mb_ord() Remove --with-libmbfl configure option Fixed bug #75451 (Assertion fails while foreach on empty xpath query) Add tests for UConverter::getStandards() convert spaces to tabs in ext/ftp/tests/server.inc Add tests for ftp_rename Fix bug #75434 Wrong reflection for mysqli_fetch_all function Don't optimize input arrays with suffix holes Fix bug #75307 Wrong reflection for openssl_open function ...
| * | | Better fix for bug #75451 (Assertion fails while foreach on empty xpath query)Dmitry Stogov2017-10-303-5/+9
| | | |
| * | | Fixed bug #75451 (Assertion fails while foreach on empty xpath query)Xinchen Hui2017-10-282-4/+19
| | | |
* | | | Encapsulate reference-counting primitives.Dmitry Stogov2017-10-271-1/+1
|/ / / | | | | | | | | | | | | | | | Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead. Added mactros to validate reference-counting (disabled for now). These macros are going to be used to eliminate race-condintions during reference-counting on data shared between threads.
* | | Avoid HashTable allocations for empty arrays (using zend_empty_array).Dmitry Stogov2017-10-241-4/+7
| | |
* | | Remove code examples from dom extensionPeter Kokot2017-10-0814-301/+0
| | | | | | | | | | | | | | | PHP documentation is a better place to present code examples. Tests for ext/dom already include all used PHP code.
* | | Refactored array creation API. array_init() and array_init_size() are ↵Dmitry Stogov2017-09-202-4/+2
|/ / | | | | | | converted into macros calling zend_new_array(). They are not functions anymore and don't return any values.
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-09-111-1/+1
|\ \ | |/ | | | | | | * PHP-7.1: Fix test compat with libxml2 2.9.5
| * Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-09-111-1/+1
| |\ | | | | | | | | | | | | * PHP-7.0: Fix test compat with libxml2 2.9.5
| | * Fix test compat with libxml2 2.9.5Anatol Belski2017-09-111-1/+1
| | | | | | | | | | | | From 2.9.5 on libxml explcitly initializes the keepBlanks flag.
* | | Req #74963 (Improved error message on fetching property of non-object)Xinchen Hui2017-07-311-2/+2
| | |
* | | Implement Countable for DomNodeList and DOMNamedNodeMap (Request #74837)Andreas Treichel2017-07-106-2/+109
| | |
* | | Merge branch 'PHP-7.1'Nikita Popov2017-06-032-0/+25
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-06-032-0/+25
| |\ \ | | |/
| | * Fixed bug #69373Tim Toohey2017-06-032-0/+25
| | | | | | | | | | | | | | | xmlNodeSetContentLen() calls xmlFreeNode() on node->children. This causes problems if there are other references around to those children.
* | | Merge branch 'PHP-7.1'Remi Collet2017-04-132-1/+22
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Fixed bug #74416 Wrong reflection on DOMNode::cloneNode
| * | Merge branch 'PHP-7.0' into PHP-7.1Remi Collet2017-04-132-1/+22
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fixed bug #74416 Wrong reflection on DOMNode::cloneNode
| | * Fixed bug #74416 Wrong reflection on DOMNode::cloneNodeFabien Villepinte2017-04-132-1/+22
| | |
* | | Merge branch 'PHP-7.1'Nikita Popov2017-03-022-4/+18
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-03-022-4/+18
| |\ \ | | |/
| | * PHP bug #74004somedaysummer2017-03-022-4/+18
| | | | | | | | | | | | | | | Fix for DOMDocument loadHTML and loadHTMLFile ignore LIBXML_NOWARNING and LIBXML_NOERROR flags.
* | | Deprecate assert() with string argumentNikita Popov2017-02-0314-26/+26
| | |
* | | Merge branch 'PHP-7.1'Nikita Popov2017-02-032-19/+4
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-02-032-19/+4
| |\ \ | | |/
| | * Revert "Merge branch 'pull-request/2344' into PHP-7.0"Nikita Popov2017-02-032-19/+4
| | | | | | | | | | | | | | | This reverts commit 6988d070ea8c7d44452d8c98e594d65ea722a1d8, reversing changes made to 75ad2b301a047209e7b5a6b5912eb589cfbc773d.
* | | Merge branch 'PHP-7.1'Joe Watkins2017-02-032-4/+19
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Fixed bug #74004 LIBXML_NOWARNING (etc) ignored by DOMDocument::loadHTML
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-02-032-4/+19
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fixed bug #74004 LIBXML_NOWARNING (etc) ignored by DOMDocument::loadHTML
| | * Fixed bug #74004 LIBXML_NOWARNING (etc) ignored by DOMDocument::loadHTMLsomedaysummer2017-02-032-4/+19
| | |
* | | Merge branch 'PHP-7.1'Anatol Belski2017-02-013-70/+29
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | * PHP-7.1: remove the reverted NEWS entry sync NEWS with the reverted stuff Revert "fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)" Revert "fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)"
| * | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-02-013-70/+29
| |\ \ | | |/ | | | | | | | | | | | | | | | * PHP-7.0: sync NEWS with the reverted stuff Revert "fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)" Revert "fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)"
| | * Revert "fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)"Anatol Belski2017-02-012-34/+29
| | | | | | | | | | | | This reverts commit 2fcf1259c6a9c1d70bcdfb96aeabc54c47e2a4a0.
| | * Revert "fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)"Anatol Belski2017-02-012-36/+0
| | | | | | | | | | | | This reverts commit 62938bf08806129b42b17e74d79a450c30d4ff30.
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-302-0/+36
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-302-0/+36
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)
| | * fix BC break introduced by #2346 (sebastianbergmann/phpunit#2454)jhdxr2017-01-302-0/+36
| | |
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-282-29/+34
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-282-29/+34
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)
| | * fixed bug #50989 (DOM support for LIBXML_NOXMLDECL)jhdxr2017-01-282-29/+34
| | |
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-252-4/+55
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.1: Fix bug #54382 (getAttributeNodeNS doesn't get xmlns* attributes) Added (failing) testcase for bug #54382
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-252-4/+55
| |\ \ | | |/ | | | | | | | | | | | | * PHP-7.0: Fix bug #54382 (getAttributeNodeNS doesn't get xmlns* attributes) Added (failing) testcase for bug #54382
| | * Fix bug #54382 (getAttributeNodeNS doesn't get xmlns* attributes)Arnout Boks2017-01-251-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fix is based on the same strategy for handling namespace declarations as used by getAttributeNode. Note that this strategy makes these methods not return a DOMAttr for xmlns* attributes, but an instance of the (undocumented) class DOMNameSpaceNode. This is not really ideal, but at least this fix makes the behavior of getAttributeNode and getAttributeNodeNS consistent. A follow-up action would be to investigate whether DOMNameSpaceNode can be made into a subclass of DOMAttr (which may be hard due to the way libxml treats namespace declarations) or document this deviating return value for xmlns* attributes.
| | * Added (failing) testcase for bug #54382Arnout Boks2017-01-251-0/+27
| | |