summaryrefslogtreecommitdiff
path: root/ext/xml
Commit message (Collapse)AuthorAgeFilesLines
* Use zend_string_equals() API instead of strcmp() in various placesGeorge Peter Banyard2021-03-171-1/+1
| | | | Closes GH-6784
* Merge branch 'PHP-8.0'Nikita Popov2021-02-161-0/+1
|\ | | | | | | | | * PHP-8.0: Mark resource-like objects as non-comparable
| * Mark resource-like objects as non-comparableNikita Popov2021-02-161-0/+1
| | | | | | | | | | | | | | As these hold on to some internal resource, there can't be two "equal" objects with different identity. Make sure the lack of public properties doesn't result in these being treated as always equal.
* | Improve class entry generationMáté Kocsis2021-02-161-2/+1
| | | | | | | | Related to GH-6701
* | Implicitly enable function entry generation when class entry generation is ↵Máté Kocsis2021-02-092-5/+2
| | | | | | | | | | | | enabled Closes GH-6675
* | Add support for generating class entries from stubsMáté Kocsis2021-01-263-6/+19
| | | | | | | | | | | | Closes GH-6289 Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* | Replace zend_bool uses with boolNikita Popov2021-01-151-1/+1
| | | | | | | | | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* | Make convert_to_*_ex simple aliases of convert_to_*Nikita Popov2021-01-141-1/+1
|/ | | | | | | | | | | | | Historically, the _ex variants separated the zval first, if a conversion was necessary. This distinction no longer makes sense since PHP 7. The only difference that was still left is that _ex checked whether the type is the same first, but the usage of these macros did not actually distinguish on whether such an inlined check is valuable or not in a given context. Also drop the unused convert_to_explicit_type macros.
* Rename XmlParser to XMLParser for consistency with XMLWriter/XMLReaderGeorge Peter Banyard2020-11-306-41/+41
|
* Fix XmlParser classname in stubsMáté Kocsis2020-10-093-4/+4
|
* Update ext/xml parameter namesNikita Popov2020-10-082-31/+31
| | | | Closes GH-6297.
* Throw warning for failed object to int/float conversionNikita Popov2020-09-211-1/+1
| | | | | | We previously couldn't increase the error level here because it was coupled to comparison handling. This is no longer the case in PHP 8.
* Run tidyNikita Popov2020-09-188-8/+8
| | | | | This should fix most of the remaining issues with tabs and spaces being mixed in tests.
* Generate arginfosMáté Kocsis2020-09-161-2/+2
|
* Display string default values in stubs more uniformlyMáté Kocsis2020-09-161-1/+1
| | | | Settling on using quoted string
* Move custom type checks to ZPPMáté Kocsis2020-09-023-5/+6
| | | | Closes GH-6034
* Add many missing closing PHP tags to testsMáté Kocsis2020-08-091-0/+1
| | | | Closes GH-5958
* Promote warnings to exceptions in ext/gettext, ext/sysvmsg and ext/xmlMáté Kocsis2020-08-037-32/+42
| | | | Closes GH-5926
* Add a bunch of missing argument types to stubsMáté Kocsis2020-08-032-1/+6
|
* Implement named parametersNikita Popov2020-07-311-0/+1
| | | | | | | | | | | | | | | | | | From an engine perspective, named parameters mainly add three concepts: * The SEND_* opcodes now accept a CONST op2, which is the argument name. For now, it is looked up by linear scan and runtime cached. * This may leave UNDEF arguments on the stack. To avoid having to deal with them in other places, a CHECK_UNDEF_ARGS opcode is used to either replace them with defaults, or error. * For variadic functions, EX(extra_named_params) are collected and need to be freed based on ZEND_CALL_HAS_EXTRA_NAMED_PARAMS. RFC: https://wiki.php.net/rfc/named_params Closes GH-5357.
* Remove no_separation flagNikita Popov2020-07-071-1/+0
|
* Disallow separation in a number of callbacksNikita Popov2020-07-071-2/+1
| | | | All of these clearly do not need separation support.
* Remove proto comments from C filesMax Semenik2020-07-061-44/+22
| | | | Closes GH-5758
* Remove unnecessary PHPDoc-alike blocks from testsMáté Kocsis2020-06-246-36/+0
| | | | Closes GH-5759
* Add flag to forbid dynamic property creation on internal classesNikita Popov2020-06-241-1/+1
| | | | | | | | | | | | | | | | | | | While performing resource -> object migrations, we're adding defensive classes that are final, non-serializable and non-clonable (unless they are, of course). This path adds a ZEND_ACC_NO_DYNAMIC_PROPERTIES flag, that also forbids the creation of dynamic properties on these objects. This is a subset of #3931 and targeted at internal usage only (though may be extended to userland at some point in the future). It's already possible to achieve this (what the removed WeakRef/WeakMap code does), but there's some caveats: First, this simple approach is only possible if the class has no declared properties, otherwise it's necessary to special-case those properties. Second, it's easy to make it overly strict, e.g. by forbidding isset($obj->prop) as well. And finally, it requires a lot of boilerplate code for each class. Closes GH-5572.
* Include stub hash in generated arginfo filesNikita Popov2020-06-241-1/+2
| | | | | | | | | | | | The hash is used to check whether the arginfo file needs to be regenerated. PHP-Parser will only be downloaded if this is actually necessary. This ensures that release artifacts will never try to regenerate stubs and thus fetch PHP-Parser, as long as you do not modify any files. Closes GH-5739.
* Add ZVAL_OBJ_COPY macroNikita Popov2020-06-171-2/+1
| | | | | For the common ZVAL_OBJ + GC_ADDREF pattern. This mirrors the existing ZVAL_STR_COPY API.
* Fix [-Wundef] warning in XML extensionGeorge Peter Banyard2020-05-201-1/+1
|
* Trim trailing whitespaces and fix code styleRod Elias2020-05-121-1/+1
| | | | Closes GH-5554.
* Fix UNKNOWN default values in ext/xmlMáté Kocsis2020-05-063-7/+7
|
* Test xml_error_string() and xml_get_error_code()Symeon Charalabides2020-04-271-0/+38
| | | | Closes GH-5456.
* Tests for the default case of the parameter of xml_parser_get_option() and ↵Symeon Charalabides2020-04-222-0/+38
| | | | xml_parser_set_option(). These cases are, as of now, not being tested.
* Fix test after callback name changeNikita Popov2020-04-141-40/+20
|
* Generate function entries from stubs for a couple of extensionsMáté Kocsis2020-04-143-5/+10
| | | | | Migrates ext/standard, ext/tidy, ext/tokenizer, ext/xml, ext/xml_reader, and ext/xml_writer. Closes GH-5381.
* Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-2/+2
| | | | | | | Closes GH-5353. From now on, PHP will have reflection information about default values of parameters of internal functions. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* Generate function entries for another batch of extensionsMáté Kocsis2020-04-053-51/+54
| | | | Closes GH-5352
* Verify that all stubs have a return typeNikita Popov2020-04-032-2/+2
|
* Reindent phpt filesNikita Popov2020-02-0319-379/+379
|
* Fix another batch of indentation in testsMáté Kocsis2020-02-021-7/+7
|
* Make error messages more consistent by fixing capitalizationMáté Kocsis2020-01-171-1/+1
| | | | Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
* Fix #78880: Another bunch of spelling errorsMáté Kocsis2020-01-163-3/+3
|
* Use RETURN_THROWS() in various placesMáté Kocsis2020-01-031-2/+2
|
* Use RETURN_THROWS() after try_convert_to_string()Máté Kocsis2020-01-031-1/+1
|
* Use RETURN_THROWS() during ZPP in most of the extensionsMáté Kocsis2019-12-311-21/+21
| | | | Except for some bigger ones: reflection, sodium, spl
* Add union return types with one classMáté Kocsis2019-11-182-6/+4
|
* Clean DONE tags from testsFabien Villepinte2019-11-074-8/+0
| | | | | | | Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
* Fix bug #78563Mark2019-10-074-2/+56
| | | | | | Make XmlParser final, unclonable and unserializable. Closes GH-4778.
* Convert some notices to warningsNikita Popov2019-10-021-13/+2
| | | | Part of https://wiki.php.net/rfc/engine_warnings.
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-254-8/+0
| | | | Closes GH-4732.
* Add missing SKIPIF (xml)Fabien Villepinte2019-09-042-0/+4
|