summaryrefslogtreecommitdiff
path: root/ext/xmlreader/php_xmlreader.c
Commit message (Collapse)AuthorAgeFilesLines
* Clarify types in XmlReader property handlingNikita Popov2021-03-011-9/+7
| | | | | Make it clearer that the specified type is really the only type that can be returned.
* Generate class entries from stubs for com, standard, xmlreader, xmlwriter, ↵Máté Kocsis2021-02-221-5/+2
| | | | | | xsl, zip, Zend Closes GH-6706
* Replace zend_bool uses with boolNikita Popov2021-01-151-1/+1
| | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* Throw from XmlReader::expand() if DOM extension missingNikita Popov2020-10-051-2/+7
| | | | | | Otherwise it is hard to uphold the arginfo contract for this function -- we cannot simply mirror the zpp call, as the class entry it is based on does not exist.
* Promote warnings to exceptions in ext/xmlreaderMáté Kocsis2020-08-251-49/+60
| | | | Closes GH-6021
* Remove proto comments from C filesMax Semenik2020-07-061-58/+29
| | | | Closes GH-5758
* Fix [-Wundef] warning in XMLReader extensionGeorge Peter Banyard2020-05-201-2/+2
|
* Fix UNKNOWN default values in ext/xmlMáté Kocsis2020-05-061-1/+1
|
* Generate function entries from stubs for a couple of extensionsMáté Kocsis2020-04-141-60/+28
| | | | | Migrates ext/standard, ext/tidy, ext/tokenizer, ext/xml, ext/xml_reader, and ext/xml_writer. Closes GH-5381.
* Use RETURN_THROWS() during ZPP in most of the extensionsMáté Kocsis2019-12-311-18/+18
| | | | Except for some bigger ones: reflection, sodium, spl
* Allow to call XMLReader::open() and ::XML() staticallyChristoph M. Becker2019-10-291-2/+30
| | | | | | | | | | | | The implementation of `XMLReader::open()` and `XMLReader::XML()` still supports calling the methods statically and non-statically. However, as of PHP 8.0.0, calling these methods statically is not allowed, because they are not declared as static methods. Since we consider it to be cleaner to call these methods statically, but had deprecated to call them statically, we properly support both variants. We implement support for static and non-static calls by overloading, so that non-static calls have access to the `$this` pointer.
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | Closes GH-4732.
* Add ext/xmlreader stubsChristoph M. Becker2019-09-041-125/+26
|
* Add missing zend_parse_paramters_none()Christoph M. Becker2019-09-041-0/+16
|
* Refactor zend_object_handlers API to pass zend_object* and zend_string* ↵Dmitry Stogov2019-02-041-41/+12
| | | | insted of zval(s).
* Merge branch 'PHP-7.4'Peter Kokot2019-02-031-9/+0
|\ | | | | | | | | * PHP-7.4: Remove local variables
| * Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
| * Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
| |
* | Remove year range from copyright noticeZeev Suraski2019-01-301-1/+1
| |
* | Remove static calls to non-static methodsNikita Popov2019-01-301-2/+2
|/
* Implement typed propertiesNikita Popov2019-01-111-2/+4
| | | | | | | | | | RFC: https://wiki.php.net/rfc/typed_properties_v2 This is a squash of PR #3734, which is a squash of PR #3313. Co-authored-by: Bob Weinand <bobwei9@hotmail.com> Co-authored-by: Joe Watkins <krakjoe@php.net> Co-authored-by: Dmitry Stogov <dmitry@zend.com>
* Use ZEND_THIS macro to hide implementation details in extensions code.Dmitry Stogov2018-11-151-16/+16
|
* Eliminate useless $this related checksDmitry Stogov2018-11-141-16/+17
|
* Bump minimum libxml version to 2.7.6Nikita Popov2018-09-231-14/+0
| | | | Released Oct 2009, part of RHEL 6.
* Remove unused Git attributes identPeter Kokot2018-07-251-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.
* Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized ↵Dmitry Stogov2018-07-041-3/+3
| | | | | | | destructors. zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places. Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
* Export standard object handlers, to avoid indirect accessDmitry Stogov2018-05-311-10/+4
|
* Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-1/+1
| | | | where we sure about string persistence.
* Keep initialized object_handlers structures in read-only memory.Dmitry Stogov2018-03-141-3/+3
|
* Use bool instead of boolean in protoGabriel Caruso2018-02-041-20/+20
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Cleanup type conversionDmitry Stogov2017-12-071-9/+3
|
* Add zend_object_alloc() APINikita Popov2017-11-251-1/+1
| | | | | | | | | | | 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)
* Fix bug #74457 Wrong reflection on XMLReader::expandFabien Villepinte2017-05-021-1/+2
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
|
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
| * bump yearXinchen Hui2015-01-151-1/+1
| |
* | cleanup mod version macros and mod defs, round xAnatol Belski2015-03-231-1/+1
| |
* | more fixes to the shared compilationAnatol Belski2015-03-231-0/+1
| |
* | Move zend_object->guards into additional slot of ↵Dmitry Stogov2015-02-041-1/+1
| | | | | | | | zend_object->properties_table[]. As result size of objects without __get/__set/__unset/__isset magic methods is reduced.
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-75/+75
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | 's' works with size_t round 3Anatol Belski2014-08-271-5/+10
| |
* | first show to make 's' work with size_tAnatol Belski2014-08-271-5/+5
| |
* | master renames phase 1Anatol Belski2014-08-251-43/+43
| |
* | ported xsl, xml reader and writerAnatol Belski2014-08-191-12/+12
| |
* | basic macro replacements, all at onceAnatol Belski2014-08-191-31/+31
| |