Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix memory leak introduced by fixing bug #78221 | Christoph M. Becker | 2020-04-08 | 1 | -2/+9 |
| | | | | | | | | | | We have to free the retrieved text content; to keep the code readable, we extract a helper function to check for empty nodes. Unfortunately, we cannot use xmlIsBlankNode(), because that also recognizes whitespace only text content. We also make sure to properly handle NULL returns from xmlNodeGetContent(). | ||||
* | Fix #78221: DOMNode::normalize() doesn't remove empty text nodes | Christoph M. Becker | 2020-04-07 | 1 | -0/+8 |
| | | | | | If a text node is not followed by another text node, we remove it, if its textContent is empty. | ||||
* | Remove unused Git attributes ident | Peter Kokot | 2018-07-25 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore. | ||||
* | Use zval_ptr_dtor() imstead of zval_dtor() | Dmitry Stogov | 2018-07-05 | 1 | -2/+2 |
| | |||||
* | Export standard object handlers, to avoid indirect access | Dmitry Stogov | 2018-05-31 | 1 | -9/+5 |
| | |||||
* | Use zend_string_release_ex() instread of zend_string_release() in places, ↵ | Dmitry Stogov | 2018-05-28 | 1 | -6/+6 |
| | | | | where we sure about string persistence. | ||||
* | Keep initialized object_handlers structures in read-only memory. | Dmitry Stogov | 2018-03-14 | 1 | -4/+4 |
| | |||||
* | Merge branch 'PHP-7.2' | Anatol Belski | 2018-02-17 | 1 | -1/+0 |
|\ | | | | | | | | | * PHP-7.2: Remove duplicated assignment | ||||
| * | Merge branch 'PHP-7.1' into PHP-7.2 | Anatol Belski | 2018-02-17 | 1 | -1/+0 |
| |\ | | | | | | | | | | | | | * PHP-7.1: Remove duplicated assignment | ||||
| | * | Remove duplicated assignment | Anatol Belski | 2018-02-17 | 1 | -1/+0 |
| | | | |||||
| | * | year++ | Xinchen Hui | 2018-01-02 | 1 | -1/+1 |
| | | | |||||
| | * | Update copyright headers to 2017 | Sammy Kaye Powers | 2017-01-04 | 1 | -1/+1 |
| | | | |||||
| * | | year++ | Xinchen Hui | 2018-01-02 | 1 | -1/+1 |
| | | | |||||
* | | | year++ | Xinchen Hui | 2018-01-02 | 1 | -1/+1 |
| | | | |||||
* | | | Make sure properties are initialized before cloning | Nikita Popov | 2017-11-25 | 1 | -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() API | Nikita Popov | 2017-11-25 | 1 | -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 Stogov | 2017-11-01 | 1 | -1/+4 |
| | | | | | | | | | | | | into SHM) | ||||
* | | | Encapsulate reference-counting primitives. | Dmitry Stogov | 2017-10-27 | 1 | -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. | ||||
* | | | Refactored array creation API. array_init() and array_init_size() are ↵ | Dmitry Stogov | 2017-09-20 | 1 | -2/+1 |
|/ / | | | | | | | converted into macros calling zend_new_array(). They are not functions anymore and don't return any values. | ||||
* | | Implement Countable for DomNodeList and DOMNamedNodeMap (Request #74837) | Andreas Treichel | 2017-07-10 | 1 | -2/+2 |
| | | |||||
* | | Update copyright headers to 2017 | Sammy Kaye Powers | 2017-01-02 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'PHP-7.1' | Joe Watkins | 2017-01-02 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | | | | | * PHP-7.1: news entry for PR #2267 Fixed #67474 (getElementsByTagNameNS and default namespace) Add (failing) testcase for bug #67474 | ||||
| * | Merge branch 'PHP-7.0' into PHP-7.1 | Joe Watkins | 2017-01-02 | 1 | -1/+1 |
| |\ | | | | | | | | | | | | | | | | | | | * PHP-7.0: news entry for PR #2267 Fixed #67474 (getElementsByTagNameNS and default namespace) Add (failing) testcase for bug #67474 | ||||
| | * | Fixed #67474 (getElementsByTagNameNS and default namespace) | Arnout Boks | 2017-01-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | This bug was caused by the fact that dom_get_elements_by_tag_name_ns_raw uses an empty string to filter on the default namespace (as NULL means 'no filter'), whereas in the node itself the default namespace is signalled by nodep->ns being null. | ||||
* | | | Merge branch 'PHP-7.1' | Nikita Popov | 2017-01-01 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | Merge branch 'PHP-7.0' into PHP-7.1 | Nikita Popov | 2017-01-01 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | Fix dom class can't be inherited by the internal class | dreamszhu | 2017-01-01 | 1 | -1/+1 |
| | | | |||||
| * | | Revert "Fix dom class can't be inherited by the internal class" | Joe Watkins | 2017-01-01 | 1 | -1/+1 |
| | | | | | | | | | | | | This reverts commit 705f60e481b891d009ec9bb4c88390545ff95880. | ||||
* | | | Revert "Merge branch 'PHP-7.1'" | Joe Watkins | 2017-01-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | This reverts commit 7eac2fdf53cda5f3bd34ae64eecbb8b21a6f484b, reversing changes made to 15b80f105cdb9a9210edd9dff7109f0951c843f4. | ||||
* | | | Merge branch 'PHP-7.1' | Joe Watkins | 2017-01-01 | 1 | -1/+1 |
|\ \ \ | |/ / | | | | | | | | | | * PHP-7.1: Fix dom class can't be inherited by the internal class | ||||
| * | | Fix dom class can't be inherited by the internal class | dreamszhu | 2017-01-01 | 1 | -1/+1 |
| | | | |||||
* | | | Save a call to strlen(), since we can figure out the length of this constant ↵ | Kalle Sommer Nielsen | 2016-10-20 | 1 | -90/+90 |
|/ / | | | | | | | value with sizeof() at compile time | ||||
* | | Merge branch 'throw-error-in-extensions' | Aaron Piotrowski | 2016-07-05 | 1 | -5/+4 |
|\ \ | |||||
| * | | Replace zend_ce_error with NULL and replace more E_ERROR with thrown Error | Aaron Piotrowski | 2016-06-13 | 1 | -2/+2 |
| | | | |||||
| * | | Merge branch 'master' into throw-error-in-extensions | Aaron Piotrowski | 2016-06-10 | 1 | -4/+6 |
| |\ \ | | |/ | |||||
| * | | Update memory freeing and other issues, revert some changes | Aaron Piotrowski | 2015-07-05 | 1 | -3/+2 |
| | | | |||||
| * | | Convert E_ERROR to thrown Error in extensions | Aaron Piotrowski | 2015-07-05 | 1 | -2/+2 |
| | | | |||||
* | | | Fixed compilation warnings | Dmitry Stogov | 2016-06-28 | 1 | -4/+5 |
| |/ |/| | |||||
* | | Merge branch 'PHP-5.6' into PHP-7.0 | Lior Kaplan | 2016-01-01 | 1 | -1/+1 |
|\ \ | | | | | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016) | ||||
| * | | Happy new year (Update copyright to 2016) | Lior Kaplan | 2016-01-01 | 1 | -1/+1 |
| | | | |||||
| * | | bump year | Xinchen Hui | 2015-01-15 | 1 | -1/+1 |
| | | | |||||
* | | | These function docs are referencing zend_object_value but this should be ↵ | Tom Van Looy | 2015-12-24 | 1 | -1/+1 |
| | | | | | | | | | | | | zend_object | ||||
* | | | Cleanup: replace removed condition with ZEND_ASSERT() | Dmitry Stogov | 2015-09-24 | 1 | -1/+2 |
| | | | |||||
* | | | Fixed Bug #70558 ("Couldn't fetch" error in DOMDocument::registerNodeClass()) | Xinchen Hui | 2015-09-23 | 1 | -1/+2 |
| |/ |/| | |||||
* | | Switch position of ce in exception ce variable names | Aaron Piotrowski | 2015-07-03 | 1 | -1/+1 |
| | | |||||
* | | Change zend_exception_get_default() to zend_exception_ce | Aaron Piotrowski | 2015-07-03 | 1 | -1/+1 |
| | | |||||
* | | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵ | Dmitry Stogov | 2015-06-30 | 1 | -1/+1 |
| | | | | | | | | semantick changes). | ||||
* | | fix exports and shared compilation | Anatol Belski | 2015-03-23 | 1 | -31/+31 |
| | | |||||
* | | Merged zend_array and HashTable into the single data structure. | Dmitry Stogov | 2015-02-13 | 1 | -3/+1 |
| | | | | | | | | | | Now each HashTable is also zend_array, so it's refcounted and may be a subject for Copy on Write zend_array_dup() was changed to allocate and return HashTable, instead of taking preallocated HashTable as argument. | ||||
* | | Use new ZEND_HASH_FOREACH_... API. | Dmitry Stogov | 2015-02-10 | 1 | -13/+4 |
| | |