summaryrefslogtreecommitdiff
path: root/ext/simplexml
Commit message (Collapse)AuthorAgeFilesLines
* Fix #76712: Assignment of empty string creates extraneous text nodeChristoph M. Becker2018-08-252-3/+25
| | | | | | We work around this peculiarity of libxml by using xmlNodeSetContent(), which does not exhibit this behavior. This also saves us from manually calculating the string length.
* Trim trailing whitespaces in build filesPeter Kokot2018-07-291-2/+2
| | | | | | | | Some editors utilizing .editorconfig automatically trim whitespaces. For convenience this patch removes whitespaces in certain build files: - ext/*/config*.m4 - configure.ac - acinclude.m4
* Remove superfluous check for PHP 7+ testsGabriel Caruso2018-07-272-2/+0
|
* Fix typos in code commentsPeter Kokot2018-07-251-1/+1
|
* Remove unused Git attributes identPeter Kokot2018-07-256-10/+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.
* Improved user iterator implementation to reduce zend_class_entry memory ↵Dmitry Stogov2018-07-123-9/+11
| | | | consumption and avoid race condition during resolving/caching of user iterator functions of internal classes in ZTS build.
* Uze ZVAL_COPY_DEREF() instead of ZVAL_DEREF() and ZVAL_COPY()Dmitry Stogov2018-07-091-4/+2
|
* Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized ↵Dmitry Stogov2018-07-041-10/+6
| | | | | | | 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.
* Normalize SimpleXML phpinfo outputPeter Kokot2018-06-021-5/+2
|
* Export standard object handlers, to avoid indirect accessDmitry Stogov2018-05-311-1/+1
|
* Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-3/+3
| | | | where we sure about string persistence.
* Keep initialized object_handlers structures in read-only memory.Dmitry Stogov2018-03-141-31/+21
|
* Revert "[ci skip] Add missing return types to protos"Christoph M. Becker2018-02-271-1/+1
| | | | | | | This reverts commit a2c7c46d5ef5b9fc945d7b655d31d5c9f1a72d34. Since apparently there have been some mistakes in this commit, and it's not clear yet how to solve them, we're reverting for now.
* [ci skip] Add missing return types to protosGabriel Caruso2018-02-241-1/+1
|
* Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-2020-20/+20
| | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* Add a test for iterating SXE properties by referenceCraig Duncan2018-02-191-0/+24
|
* Convert iterator by reference errors to exceptionsNikita Popov2018-02-191-1/+2
| | | | | | I'm using RuntimeException in SPL, because other SPL classes that throw this error used it. Error is used for everything else, because that's what core does.
* Merge branch 'PHP-7.2'Joe2018-02-081-1/+1
|\ | | | | | | | | * PHP-7.2: Fixes bug #75871 Use pkg-config for libxml2 if available
| * Merge branch 'PHP-7.1' into PHP-7.2Joe2018-02-081-1/+1
| |\ | | | | | | | | | | | | * PHP-7.1: 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-025-5/+5
| | |
| * | year++Xinchen Hui2018-01-025-5/+5
| | |
* | | Use int instead of integer in type errorsGabriel Caruso2018-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
* | | Remove superfluous SKIPIF sections in more testsGabriel Caruso2018-02-041-1/+1
| | |
* | | Remove checks for unicode.semantics ini optionNikita Popov2018-02-031-1/+1
| | |
* | | Add missing SKIPIF sectionsGabriel Caruso2018-02-035-1/+10
| | |
* | | Scalar types don't have reference counterDmitry Stogov2018-01-171-5/+0
| | |
* | | year++Xinchen Hui2018-01-025-5/+5
| | |
* | | Add _IS_NUMBER as cast_object() target typeNikita Popov2017-12-263-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | convert_scalar_to_number() will now call cast_object() with an _IS_NUMBER argument, in which case the cast handler should return either an integer or floating point number, whichever is more appropriate. Previously convert_scalar_to_number() unconditionally converted objects to integers instead. Fixes bug #53033. Fixes bug #54973. Fixes bug #73108.
* | | Remove unnecessary readobj==writeobj checksNikita Popov2017-12-251-4/+0
| | | | | | | | | | | | | | | This can no longer be the case since PHP 7. The writeobj must always point to a different zval.
* | | Move constants into read-only data segmentDmitry Stogov2017-12-141-1/+1
| | |
* | | Move zend_object_iterator_funcs structures into read-only data segmentDmitry Stogov2017-12-141-1/+1
| | |
* | | Cleanup type conversionDmitry Stogov2017-12-071-2/+1
| | |
* | | 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.
* | | Avoid unnecessary reference-counting on strings.Dmitry Stogov2017-11-161-4/+4
| | |
* | | Avoid HashTable allocations for empty arrays (using zend_empty_array).Dmitry Stogov2017-10-241-2/+4
| | |
* | | Remove PHP examples from simplexmlPeter Kokot2017-10-056-64/+0
| | |
* | | Refactored array creation API. array_init() and array_init_size() are ↵Dmitry Stogov2017-09-201-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-3/+1
|\ \ | |/ | | | | | | * PHP-7.1: Fix test compat with libxml2 2.9.5
| * Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-09-111-3/+1
| |\ | | | | | | | | | | | | * PHP-7.0: Fix test compat with libxml2 2.9.5
| | * Fix test compat with libxml2 2.9.5Anatol Belski2017-09-111-3/+1
| | | | | | | | | | | | One warning disappeared, but the flow is still valid.
* | | Merge branch 'PHP-7.1' into PHP-7.2Dmitry Stogov2017-08-151-0/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Skip 64-bit related test
| * | Skip 64-bit related testDmitry Stogov2017-08-151-0/+1
| | |
* | | Req #74963 (Improved error message on fetching property of non-object)Xinchen Hui2017-07-311-2/+2
| | |
* | | Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2017-07-212-6/+22
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.1: Update NEWS Fixed bug #74950 (nullpointer deref in simplexml_element_getDocNamespaces)
| * | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-07-212-6/+22
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fixed bug #74950 (nullpointer deref in simplexml_element_getDocNamespaces)
| | * Fixed bug #74950 (nullpointer deref in simplexml_element_getDocNamespaces)Xinchen Hui2017-07-212-6/+22
| | |
| | * Update copyright headers to 2017Sammy Kaye Powers2017-01-045-5/+5
| | |
| * | Update copyright headers to 2017Sammy Kaye Powers2017-01-045-5/+5
| | |
| * | fix typoAnatol Belski2016-10-141-1/+1
| | | | | | | | | | | | (cherry picked from commit efc1f33b58b0936539ea6ca1de345bd83c7e8f26)