| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Closes GH-6075
|
| |
|
|
|
|
| |
Closes GH-6011
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
|
| |
|
|
|
|
|
|
| |
Return the original value. If we don't return the original value,
we need to own the zval, which we don't.
For clarity also switch things to work on a zend_string* value
instead of a zval*.
|
| |
|
|
| |
At this point, the value has already been converted into a string.
|
| | |
|
| |
|
|
|
| |
Elevate this warning into an Error, as usual. Add a few checks
in places that were missing them.
|
| |
|
|
| |
Closes GH-5758
|
| |
|
|
| |
Optional handler with the same semantics as the object handler.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Context: https://externals.io/message/108789
This essentially moves the functionality of SimpleXMLIterator into
SimpleXMLElement, and makes SimpleXMLIterator a no-op extension.
Ideally SimpleXMLElement would be an IteratorAggregate, whose
getIterator() method returns SimpleXMLIterator. However, because
SimpleXMLIterator extends SimpleXMLElement (and code depends on
this in non-trivial ways), this is not possible.
The only way to not keep SimpleXMLElement as a magic Traversable
(that implements neither Iterator nor IteratorAggregate) is to
move the SimpleXMLIterator functionality into it.
Closes GH-5234.
|
| |
|
|
|
| |
Cloning of root elements has to preserve that property, so they require
some special treatment.
|
| |
|
|
|
| |
For the common ZVAL_OBJ + GC_ADDREF pattern.
This mirrors the existing ZVAL_STR_COPY API.
|
| |
|
|
| |
Closes GH-5673.
|
| | |
|
| |\
| |
| |
| |
| | |
* PHP-7.4:
Fix #79528: Different object of the same xml between 7.4.5 and 7.4.4
|
| | |\
| | |
| | |
| | |
| | | |
* PHP-7.3:
Fix #79528: Different object of the same xml between 7.4.5 and 7.4.4
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Revert "Fix #61597: SXE properties may lack attributes and content"
This reverts commit 7c081db885756d7b176a55b90b8746f664d1e042.
|
| | | |
| | |
| | |
| | |
| | | |
Converts ext/pcntl, ext/simplexml, ext/snmp, ext/soap, ext/sqlite3.
Closes GH-5421
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
To explicitly indicate that objects are uncomparable. For now
this has no functional difference from the usual 1 return value,
but makes intent clearer.
|
| | | |
| | |
| | |
| | | |
Closes GH-5278
|
| |\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fix #61597: SXE properties may lack attributes and content
|
| | |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.3:
Fix #61597: SXE properties may lack attributes and content
|
| | | |
| | |
| | |
| | |
| | | |
We must not treat a node as string if it has attributes, unless it is
an entity declaration which is always treated as string by simplexml.
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
Except for some bigger ones: reflection, sodium, spl
|
| | | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
| | |
| | |
| | |
| | | |
- introduce zend_compare() that returns -1,0,1 dirctly (without intermediate zval)
- remove compare_objects() object handler, and keep only compare() handler
|
| |\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fixed #75245 Don't set content of elements with only whitespaces
|
| | | | |
|
| | | |
| | |
| | |
| | | |
Closes GH-4732.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
Remove odd manual checks in favor of a standard zpp call.
|
| | | |
| | |
| | |
| | | |
Closes GH-4255.
|
| |\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Cheaper checks for exceptions thrown from __toString()
|
| | | | |
|
| |\ \ \
| |/ / |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
RFC: https://wiki.php.net/rfc/tostring_exceptions
And convert some object to string conversion related recoverable
fatal errors into Error exceptions.
Improve exception safety of internal code performing string
conversions.
|
| |\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
SimpleXMLElement and ResourceBundle implement Countable
|
| | | |
| | |
| | |
| | |
| | | |
Both classes already have a count() method and are considered
countable by \is_countable().
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Now that set() is gone, there is little point in keeping get(), as
it is essentially just a different way of writing cast_object()
now.
Closes GH-4202.
|
| |\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
|
| | | | |
|
| |\ \ \
| |/ / |
|
| | | |
| | |
| | |
| | | |
The usual wrappers around ZVAL_EMPTY_ARRAY()...
|
| |\ \ \
| |/ / |
|
| | | |
| | |
| | |
| | |
| | | |
Most of these only occur under GCC 5. Not fond of all the workarounds
(especially the PDO one), but it gets us a clean build...
|
| |/ /
| |
| |
| | |
insted of zval(s).
|