summaryrefslogtreecommitdiff
path: root/ext/dom/xpath.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace zend_bool uses with boolNikita Popov2021-01-151-2/+2
| | | | | | | 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.
* Promote warnings to error in DOM extensionGeorge Peter Banyard2020-09-221-21/+17
| | | | Closes GH-5418
* Consolidate new union type ZPP macro namesMáté Kocsis2020-09-111-1/+1
| | | | | | | They will now follow the canonical order of types. Older macros are left intact due to maintaining BC. Closes GH-6112
* 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 spurious return true from DOMXPath::registerPhpFunctions()Nikita Popov2020-07-171-1/+0
| | | | | Only one of three identical cases returned true, and the function is documented to return void. Remove the outlier.
* Use string|array type in DOMXPath::registerPhpFunctions()Nikita Popov2020-07-171-13/+14
|
* Remove no_separation flagNikita Popov2020-07-071-1/+0
|
* Disallow separation in a number of callbacksNikita Popov2020-07-071-1/+1
| | | | All of these clearly do not need separation support.
* Remove proto comments from C filesMax Semenik2020-07-061-5/+5
| | | | Closes GH-5758
* Fix [-Wundef] warning in DOM extensionGeorge Peter Banyard2020-05-161-2/+2
|
* Generate method entries for ext/domMáté Kocsis2020-04-131-16/+5
| | | | Closes GH-5374
* Do not include the same stub multiple timesMáté Kocsis2020-04-031-1/+1
| | | | Closes GH-5322
* Remove DOM_GET_THIS macroNikita Popov2020-03-091-3/+1
| | | | This macro is trivial, it's more obvious to use ZEND_THIS directly.
* Rename php_dom_create_interator() to php_dom_create_iterator()Christoph M. Becker2020-02-171-1/+1
| | | | Thus fixing an obvious typo.
* Use RETURN_THROWS() during ZPP in the date, dba and dom extensionsMáté Kocsis2019-12-311-3/+3
|
* ext/dom: Replace usages of PHP_FUNCTION and aliases with PHP_METHOD.Benjamin Eberlei2019-11-091-8/+8
|
* Convert ext/dom to use arginfo stub.Benjamin Eberlei2019-11-081-32/+6
|
* zend_parse_parameters_throw() is obsoleteChristoph M. Becker2019-11-011-1/+1
| | | | | | Since `zend_parse_parameters()` throws now, there is no reason to explicitly call `zend_parse_parameters_throw()` anymore, and since both have actually the same implementation, we redefine the latter as macro.
* ext/dom: Add global registerNodeNS flag on DOMXPath ctor and property.Benjamin Eberlei2019-10-051-4/+28
|
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | Closes GH-4732.
* Add do...while(0) for RETURN_* and ZVAL_* APIstwosee2019-06-121-1/+1
| | | | Closes GH-4255.
* Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
|
* Use ZEND_THIS macro to hide implementation details in extensions code.Dmitry Stogov2018-11-151-3/+3
|
* Replace zend_parse_method_parameters() by zend_parse_parameters() and avoid ↵Dmitry Stogov2018-11-141-2/+4
| | | | useless checks.
* Replace getThis() by EX(This), when additional check is not necessary.Dmitry Stogov2018-11-141-2/+2
|
* Remove unused Git attributes identPeter Kokot2018-07-251-2/+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.
* Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized ↵Dmitry Stogov2018-07-041-1/+1
| | | | | | | 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.
* Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-3/+3
| | | | where we sure about string persistence.
* Remove return types from some magic method in protosGabriel Caruso2018-03-091-1/+1
| | | | __construct, __destruct, __wakeup does not have return types defined.
* Use bool instead of boolean in protoGabriel Caruso2018-02-041-3/+3
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Avoid HashTable allocations for empty arrays (using zend_empty_array).Dmitry Stogov2017-10-241-4/+7
|
* Refactored array creation API. array_init() and array_init_size() are ↵Dmitry Stogov2017-09-201-2/+1
| | | | converted into macros calling zend_new_array(). They are not functions anymore and don't return any values.
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Removed "zend_fcall_info.function_table". It was assigned in many places, ↵Dmitry Stogov2016-04-271-1/+0
| | | | but is never used.
* Removed zend_fcall_info.symbol_tableDmitry Stogov2016-03-021-1/+0
|
* Missed semicolonXinchen Hui2016-02-181-1/+1
|
* 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
| |
| * bump yearXinchen Hui2015-01-151-1/+1
| |
* | Get rid of implicit type casting in GC_*() macros in Zend/zend_types.h.Dmitry Stogov2015-08-131-1/+1
| | | | | | | | | | | | This prevented compilation warnings and disclosed few incorrect usages in Zend/zend_vm_def.h and ext/dom/xpath.c. Now explicit type casting may be required on call site. This may break some C extension code, but it shoulfn't be a problem to add explicit casting.
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-3/+3
| | | | | | | | semantick changes).
* | Fix more minor mistakes in the proto commentsRasmus Lerdorf2015-06-231-3/+3
| |
* | Always throw TypeException on throwing zpp failuresNikita Popov2015-04-061-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Use new ZEND_HASH_FOREACH_... API.Dmitry Stogov2015-02-101-4/+2
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-13/+13
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-29/+28
| |
* | bring back all the TSRMLS_FETCH() stuffAnatol Belski2014-10-151-0/+2
| | | | | | | | for better comparability with the mainstream