summaryrefslogtreecommitdiff
path: root/ext/simplexml
Commit message (Collapse)AuthorAgeFilesLines
* 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)
| * | Fix bug #73293 - NULL pointer dereference in SimpleXMLElement::asXML()Stanislav Malyshev2016-10-141-3/+16
| | | | | | | | | | | | | | | (cherry picked from commit 96a8cf8e1b5dc1b0c708bb5574e0d6727cc56d9e) (cherry picked from commit 4ef79370a82d6c92f4ea0cd462274ba24e007f56)
* | | "Countable" interface is moved from SPL to CoreDmitry Stogov2017-05-251-1/+1
| | |
* | | Update copyright headers to 2017Sammy Kaye Powers2017-01-025-5/+5
| | |
* | | Remove the binary cast from unrelated testsPedro Magalhães2016-11-206-6/+6
| | |
* | | Remove the b prefix from literals on unrelated testsPedro Magalhães2016-11-201-2/+2
| | |
* | | Fix tests: don't count non-countablesChristoph M. Becker2016-11-132-12/+4
| | |
* | | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-10-121-1/+1
|\ \ \ | | |/ | |/| | | | | | | * PHP-7.0: fix typo
| * | fix typoAnatol Belski2016-10-121-1/+1
| | |
* | | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-10-121-3/+16
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0: followup with #73276 merge fix test Fix bug #73276 - crash in openssl_random_pseudo_bytes function Fix bug #73293 - NULL pointer dereference in SimpleXMLElement::asXML() Fix for #73240 - Write out of bounds at number_format avoid strlen Bug #73218: add mitigation for ICU int overflow Add more locale length checks, due to ICU bugs. Fix bug #73150: missing NULL check in dom_document_save_html Clear FG(user_stream_current_filename) when bailing out set versions and release date sync NEWS Revert "Fixed bug #73067 (__debugInfo crashes when throwing an exception)" Fix for #73240 - Write out of bounds at number_format Fix bug #73257 and bug #73258 - SplObjectStorage unserialize allows use of non-object as key set versions Fix bug #73091 - Unserializing DateInterval object may lead to __toString invocation
| * | Fix bug #73293 - NULL pointer dereference in SimpleXMLElement::asXML()Stanislav Malyshev2016-10-121-3/+16
| | | | | | | | | | | | (cherry picked from commit 96a8cf8e1b5dc1b0c708bb5574e0d6727cc56d9e)
* | | Merge branch 'PHP-7.1'Christoph M. Becker2016-09-091-2/+0
|\ \ \ | | |/ | |/|
| * | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-09-091-2/+0
| |\ \ | | |/
| | * Merge branch 'PHP-5.6' into PHP-7.0Christoph M. Becker2016-09-091-2/+0
| | |\
| | | * Remove ignored --FAIL-- section from test caseChristoph M. Becker2016-09-091-2/+0
| | | | | | | | | | | | | | | | This is just confusing.
* | | | Drop SXE_ELEMENT_BY_NAMENikita Popov2016-09-041-12/+0
|/ / / | | | | | | | | | Effectively commented out code
* | | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-08-303-13/+58
|\ \ \ | |/ /
| * | Fix bug #72957Nikita Popov2016-08-302-12/+22
| | |
| * | Followup for bug #72971Nikita Popov2016-08-302-1/+36
| | | | | | | | | | | | | | | | | | Property writes did not respect the namespace either. This is an incomplete fix in that it only handles the case where an existing child element is modified, not when a new one is created.
* | | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-08-302-2/+23
|\ \ \ | |/ /
| * | Fix bug #72971Nikita Popov2016-08-302-2/+23
| | |
* | | Avoid uncollectable cycle in sxe_property_get_adrNikita Popov2016-07-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code was storing the created object in a property on the created object, creating a trivial cycle. This cycle cannot be collected (even if sxe->tmp is exposed via get_gc), because it is never rooted (and we cannot safely manually root it). Change the code to store the created object on the parent node instead. The only reason this is not showing up as a leak is that sxe->tmp is dtor'ed in the dtor handler, which means that these objects do get collected on shutdown -- but never earlier.
* | | Remove unnecessary use of sxe->tmpNikita Popov2016-07-161-5/+1
| | |
* | | Merge branch 'PHP-7.0'Xinchen Hui2016-07-132-26/+81
|\ \ \ | |/ / | | | | | | | | | * PHP-7.0: Fixed bug #72588 (Using global var doesn't work while accessing SimpleXML element)
| * | Fixed bug #72588 (Using global var doesn't work while accessing SimpleXML ↵Xinchen Hui2016-07-132-26/+81
| | | | | | | | | | | | element)