summaryrefslogtreecommitdiff
path: root/ext/simplexml
Commit message (Collapse)AuthorAgeFilesLines
* Convert CRLF to LFPeter Kokot2019-05-131-34/+34
| | | | | These files are tracked with CRLF line endings in Git and can be converted to LF. Neither are parts of tests or code itself.
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1516-16/+12
| | | | | | | | | | | | | | | | | | | | | | | 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-1462-79/+79
|
* Sync leading and final newlines in source code filesPeter Kokot2018-10-144-4/+4
| | | | | | | | | | | | | | | | | | | | | | 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-134-7/+7
|
* 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
| |
* | 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)
* | | Merge branch 'throw-error-in-extensions'Aaron Piotrowski2016-07-052-8/+14
|\ \ \
| * | | Replace zend_ce_error with NULL and replace more E_ERROR with thrown ErrorAaron Piotrowski2016-06-131-5/+5
| | | |
| * | | Merge branch 'master' into throw-error-in-extensionsAaron Piotrowski2016-06-107-23/+48
| |\ \ \
| * | | | Update memory freeing and other issues, revert some changesAaron Piotrowski2015-07-051-2/+5
| | | | |
| * | | | Convert E_ERROR to thrown Error in extensionsAaron Piotrowski2015-07-052-6/+9
| | | | |