summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
|
* 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)
* Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-08-301-13/+7
|\
| * Fix bug #72957Nikita Popov2016-08-301-12/+6
| |
| * Followup for bug #72971Nikita Popov2016-08-301-1/+1
| | | | | | | | | | | | 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-301-2/+2
|\ \ | |/
| * Fix bug #72971Nikita Popov2016-08-301-2/+2
| |
* | 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-131-26/+40
|\ \ | |/ | | | | | | * 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-131-26/+40
| | | | | | | | element)
* | Merge branch 'throw-error-in-extensions'Aaron Piotrowski2016-07-051-7/+10
|\ \
| * | 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-101-9/+40
| |\ \ | | |/
| * | Update memory freeing and other issues, revert some changesAaron Piotrowski2015-07-051-2/+5
| | |
| * | Convert E_ERROR to thrown Error in extensionsAaron Piotrowski2015-07-051-5/+5
| | |
* | | Fixed compilation warningsDmitry Stogov2016-06-221-1/+4
| | |
* | | Added ZEND_ATTRIBUTE_FORMAT to some middind functions.Dmitry Stogov2016-06-211-5/+5
| |/ |/| | | | | | | "%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
* | Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-03-081-1/+1
|\ \ | | | | | | | | | | | | * PHP-5.6: fix regression introduced in 5683b6fa39
| * | fix regression introduced in 5683b6fa39Anatol Belski2016-03-081-1/+1
| | | | | | | | | | | | | | | Test extended. Basically, both iterator type and next node have to be checked.
* | | 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
| | |
| * | Refactored the fix for bug #66084, by cmb@php.netAnatol Belski2015-05-291-1/+1
| | |
| * | Bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | add range checks to simplexmlAnatol Belski2015-08-261-3/+34
| | |
* | | Fix simplexml warningsNikita Popov2015-07-171-4/+4
| |/ |/|
* | Switch position of ce in exception ce variable namesAaron Piotrowski2015-07-031-1/+1
| |
* | Change zend_exception_get_default() to zend_exception_ceAaron Piotrowski2015-07-031-1/+1
| |
* | Cleanup (removed dead code)Dmitry Stogov2015-07-011-5/+0
| |
* | Improved zend_string API (Francois Laupretre)Dmitry Stogov2015-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit d96eab8d79b75ac83d49d49ae4665f948d15a804 Author: Francois Laupretre <francois@tekwire.net> Date: Fri Jun 26 01:23:31 2015 +0200 Use the new 'ZSTR' macros in the rest of the code. Does not change anything to the generated code (thanks to compat macros) but cleaner. commit b3526439104ac7a89a8e0c79dbebf33b22bd01b8 Author: Francois Laupretre <francois@tekwire.net> Date: Thu Jun 25 13:45:06 2015 +0200 Improve zend_string API Add missing methods
* | Fix more proto commentsRasmus Lerdorf2015-06-231-1/+1
| |
* | Avoid zval duplication in ZVAL_ZVAL() macro (it was necessary only in few ↵Dmitry Stogov2015-06-121-9/+5
| | | | | | | | | | | | places). Switch from ZVAL_ZVAL() to simpler macros where possible (it makes sense to review remaining places)
* | Make convert_to_* safe with rc>1Nikita Popov2015-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This only involves switching zval_dtor to zval_ptr_dtor for arrays and making the convert_to_object for arrays a bit more generic. All the other changes outside zend_operators.c just make use of this new ability (use COPY instead of DUP). What's still missing: Proper references handling. I've seen many convert_to* calls that will break when a reference is used. Also fixes bug #69788.
* | fixed whitespace dependend behavior of casting SimpleXMLElements to booleanChristoph M. Becker2015-05-291-1/+1
| |
* | fixed whitespace depending (mis)behavior of var_dump'ing and print_r'ing ↵Christoph M. Becker2015-05-291-1/+1
| | | | | | | | SimpleXMLElements
* | Merge branch 'master' of git.php.net:php-srcXinchen Hui2015-05-061-40/+70
|\ \
| * | Loop splitting and specializationDmitry Stogov2015-05-051-12/+35
| | |
| * | Fixed compilation warningDmitry Stogov2015-05-051-1/+1
| | |
| * | Use zend heap instead of systemDmitry Stogov2015-05-051-12/+12
| | |
| * | Use better zend_hash_*() functions.Dmitry Stogov2015-05-051-13/+16
| | |
| * | Removed check for count() in SXE classDmitry Stogov2015-05-051-3/+7
| | |
* | | fixed commentXinchen Hui2015-05-051-1/+1
|/ /
* | Unused macrosXinchen Hui2015-05-051-11/+0
| |
* | Optimize cast simplexml to IS_BOOLXinchen Hui2015-05-051-5/+96
| |
* | Unused varXinchen Hui2015-05-051-4/+2
| |
* | Avoid repeatable lookups for count() method in the same class entry.Dmitry Stogov2015-05-051-27/+47
| |
* | Always throw TypeException on throwing zpp failuresNikita Popov2015-04-061-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces a ZEND_PARSE_PARAMS_THROW flag for zpp, which forces to report FAILURE errors using a TypeException instead of a Warning, like it would happen in strict mode. Adds a zend_parse_parameters_throw() convenience function, which invokes zpp with this flag. Converts all cases I could identify, where we currently have throwing zpp usage in constructors and replaces them with this API. Error handling is still replaced to EH_THROW in some cases to handle other, domain-specific errors in constructors.
* | cleanup mod version macros and mod defs, round xAnatol Belski2015-03-231-1/+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.