summaryrefslogtreecommitdiff
path: root/ext/xmlreader
Commit message (Collapse)AuthorAgeFilesLines
* Cheaper checks for exceptions thrown from __toString()Dmitry Stogov2019-06-061-9/+12
|
* Allow exceptions in __toString()Nikita Popov2019-06-051-0/+9
| | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
* Normalize comments in *nix build system m4 filesPeter Kokot2019-05-121-2/+0
| | | | | | | | | Normalization include: - Use dnl for everything that can be ommitted when configure is built in favor of the shell comment character # which is visible in the output. - Line length normalized to 80 columns - Dots for most of the one line sentences - Macro definitions include similar pattern header comments now
* Rename --enable-libxml to --with-libxml to meet naming guidelinesHugh McMaster2019-04-181-1/+1
|
* Use PKG_CHECK_MODULES to detect libxml2Hugh McMaster2019-04-181-2/+0
|
* Remove support for --with-libxml-dirHugh McMaster2019-04-181-9/+0
|
* Remove extension readmesPeter Kokot2019-03-191-5/+0
| | | | | This patch removes several extension readmes in favor of the PHP manual and where possible.
* Use separate output files in xmlreader testsFabien Villepinte2019-03-155-10/+10
|
* Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-1515-21/+21
|
* Add tests to XMLReaderThiago Carvalho2019-03-157-1/+127
|
* Cleanup unused module globalsDmitry Stogov2019-03-121-6/+0
|
* Add AS_HELP_STRING to *nix build configure optionsPeter Kokot2019-03-071-4/+11
| | | | | | | | The Autoconf's default AS_HELP_STRING macro can properly format help strings [1] so watching out if columns are aligned manually is not anymore. [1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
* Mark ext/xmlreader/tests/bug70309.phpt as online testNikita Popov2019-02-281-0/+1
| | | | | | | | | The relax NG schema is fetched from a remote server. We could include it in the repo, but it's 500KB. A minimized test case would be better. Also, apparently this bug has never been reported upstream and just patched in the libxml we build on Windows?
* Range of new tests for xmlreader functionality and exceptions/errorsMarkBaker2019-02-176-0/+361
|
* Remove local variablesPeter Kokot2019-02-032-18/+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-302-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
|
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-153-3/+2
| | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Trim trailing whitespace in *.phptPeter Kokot2018-10-1412-13/+13
|
* Trim trailing whitespace in testsGabriel Caruso2018-10-1416-20/+20
|
* Sync leading and final newlines in source code filesPeter Kokot2018-10-143-3/+2
| | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Trim trailing whitespace in source code filesPeter Kokot2018-10-131-2/+2
|
* Bump minimum libxml version to 2.7.6Nikita Popov2018-09-232-17/+1
| | | | Released Oct 2009, part of RHEL 6.
* Fix permissionsPeter Kokot2018-09-213-0/+0
| | | | Certain files don't need to be executables.
* Remove unused Git attributes identPeter Kokot2018-07-2518-23/+2
| | | | | | | | | | | | | | | 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 EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-204-4/+4
| | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* Merge branch 'PHP-7.2'Joe2018-02-081-1/+1
|\ | | | | | | | | * PHP-7.2: Fixes bug #75871 Use pkg-config for libxml2 if available
| * Fixes bug #75871 Use pkg-config for libxml2 if availablePedro Magalhães2018-02-081-1/+1
| |
| * year++Xinchen Hui2018-01-022-2/+2
| |
* | Use bool instead of boolean in protoGabriel Caruso2018-02-041-20/+20
| |
* | year++Xinchen Hui2018-01-022-2/+2
| |
* | Remove outdated TODO filesPeter Kokot2017-12-091-8/+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]
* | 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)
* | Remove PHP code examples from xmlreaderPeter Kokot2017-10-1911-170/+0
| | | | | | | | | | The PHP documentation can present the xmlreader extension better with code snippets.
* | Add tests to XMLReader::expand error pathsThiago Carvalho2017-10-191-0/+29
| |
* | Merge branch 'PHP-7.2'Anatol Belski2017-09-111-2/+2
|\ \ | |/ | | | | | | * PHP-7.2: Fix test compatibility with libxml2 2.9.5
| * Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-09-111-2/+2
| |\ | | | | | | | | | | | | * PHP-7.0: Fix test compatibility with libxml2 2.9.5
| | * Fix test compatibility with libxml2 2.9.5Anatol Belski2017-09-111-2/+2
| | |
* | | Get rid of all these old package[2].xml files, most of these had no had a ↵Kalle Sommer Nielsen2017-08-171-75/+0
|/ / | | | | | | | | | | release since PHP4, or any release at all in close to 10 years, some even did not have a package registered at pecl OCI, PDO_OCI and zip are left as they are actively developed and released there
* | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-05-022-1/+17
|\ \ | |/ | | | | | | * PHP-7.0: Fix bug #74457 Wrong reflection on XMLReader::expand
| * Fix bug #74457 Wrong reflection on XMLReader::expandFabien Villepinte2017-05-022-1/+17
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-042-2/+2
| |