jrfnl
78bfe682a5
[ci skip] PHP 8.3 Upgrading:
...
add missing PGSQL functions/constants
Follow up on 10868, which introduced these functions and constants.
add missing PGSQL visibility constants
Follow up on 10935, which introduced these constants.
Close GH-11838
2023-07-31 17:08:25 +01:00
jrfnl
a8fa0b54d8
[ci skip] PHP 8.3 Upgrading: fix pg_set_error_context_visibility typo
...
Ref: 21aaf3321f
Close GH-11837
2023-07-31 17:07:20 +01:00
jrfnl
c7cbe3764a
[ci skip] PHP 8.3 Upgrading: add missing POSIX constants
...
Follow up on 10238 which added these constants.
Close GH-11835
2023-07-31 17:07:04 +01:00
Niels Dossche
ae66a0d142
Corrections to return type of loading DOM documents
2023-07-29 14:58:01 +02:00
Remi Collet
0893b4bed5
add ZipArchive::LENGTH_TO_END and ZipArchive::LENGTH_UNCHECKED constants
2023-07-28 15:56:31 +02:00
George Peter Banyard
722b5cc986
[skip ci] Update UPGRADING with all relevant information
2023-07-18 13:07:01 +01:00
Máté Kocsis
0f64b01aee
Add UPGRADING note about SNMP class constant type declarations
...
[skip-ci]
2023-07-18 13:55:01 +02:00
Niels Dossche
de60872cfd
Add new curl constants from curl until (including) 7.87 ( #10459 )
...
Fixes GH-10454
2023-07-17 20:42:39 +02:00
Niels Dossche
db5e8ae6cf
Implement DOMElement::toggleAttribute()
...
ref: https://dom.spec.whatwg.org/#dom-element-toggleattribute
Closes GH-11696.
2023-07-17 20:06:49 +02:00
Niels Dossche
a73f38f407
Implement DOMElement::insertAdjacent{Element,Text} ( #11700 )
...
* Implement DOMElement::insertAdjacent{Element,Text}
ref: https://dom.spec.whatwg.org/#dom-element-insertadjacentelement
ref: https://dom.spec.whatwg.org/#dom-element-insertadjacenttext
Closes GH-11700.
2023-07-17 17:42:47 +02:00
George Peter Banyard
d8696f9216
[RFC] Path to Saner Increment/Decrement operators ( #10358 )
...
* Add behavioural tests for incdec operators
* Add support to ++/-- for objects castable to _IS_NUMBER
* Add str_increment() function
* Add str_decrement() function
RFC: https://wiki.php.net/rfc/saner-inc-dec-operators
Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
Co-authored-by: Arnaud Le Blanc <arnaud.lb@gmail.com>
2023-07-17 15:51:24 +01:00
Niels Dossche
2f318cfb06
Implement DOMNode::isEqualNode()
...
Since we still support obsoleted nodes in our implementation, this uses
the old spec to match the old nodes; and this uses the new spec for
nodes still defined in the living spec.
When unclear, the behaviour was cross-verified with Firefox.
References:
https://dom.spec.whatwg.org/#dom-node-isequalnode (for everything still in the living spec)
https://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/DOM3-Core.html#core-Node3-isEqualNode (for old nodes removed from the living spec)
Closes GH-11690.
2023-07-17 15:29:36 +02:00
Niels Dossche
d04f48b6ac
Implement DOMNode::parentElement and DOMNameSpaceNode::parentElement
...
ref: https://dom.spec.whatwg.org/#parent-element
Closes GH-11679.
2023-07-17 13:15:31 +02:00
Niels Dossche
d38cc9b9b6
Implement DOMNode::isConnected and DOMNameSpaceNode::isConnected
...
ref: https://dom.spec.whatwg.org/#dom-node-isconnected
Closes GH-11677.
2023-07-17 13:14:13 +02:00
Arnaud Le Blanc
e413419e33
[ci skip] UPGRADING / NEWS
2023-07-16 13:42:35 +02:00
Arnaud Le Blanc
d0731934b7
Expose time spent collecting cycles in gc_status() ( #11523 )
2023-07-16 12:34:28 +02:00
Joshua Behrens
08b57772b0
Warn when fpm socket was not registered on the expected path
...
This might happen if the UDS length limit is exceeded.
Co-authored-by: Jakub Zelenka <bukka@php.net>
Closes GH-11066
2023-07-15 14:21:58 +01:00
Niels Dossche
72e2e25066
Implement DOMElement::id
...
ref: https://dom.spec.whatwg.org/#dom-element-id
Closes GH-11701.
2023-07-14 14:37:11 +02:00
Niels Dossche
6560c9bf8e
Implement DOMParentNode::replaceChildren()
...
ref: https://dom.spec.whatwg.org/#dom-parentnode-replacechildren
2023-07-14 14:34:29 +02:00
Niels Dossche
b24b3510f9
Implement DOMElement::className
...
ref: https://dom.spec.whatwg.org/#dom-element-classname
Closes GH-11691.
2023-07-13 19:05:09 +02:00
George Peter Banyard
3d4ff5ae22
RFC: Deprecate remains of string evaluated code assertions ( #11671 )
...
Link: https://wiki.php.net/rfc/assert-string-eval-cleanup
2023-07-13 15:45:32 +01:00
Niels Dossche
d17069e191
Implement DOMNode::getRootNode()
...
ref: https://dom.spec.whatwg.org/#dom-node-getrootnode
Closes GH-11693.
2023-07-13 16:27:28 +02:00
Niels Dossche
10d7e8dc3a
Implement DOMElement::getAttributeNames()
...
ref: https://dom.spec.whatwg.org/#dom-element-getattributenames
2023-07-13 16:18:10 +02:00
Ilija Tovilo
d9db446065
Fix iface const visibility variance check
2023-07-13 10:52:58 +02:00
Niels Dossche
ea794e9cde
Implement DOMNode::contains()
...
ref: https://dom.spec.whatwg.org/#dom-node-contains
2023-07-12 19:29:07 +02:00
Tim Düsterhus
c2cc1dbc85
[ci skip] NEWS / UPGRADING for ldap_connect with 2 arguments deprecation
...
see 69a8b63ecf
2023-07-11 17:34:38 +02:00
Tim Düsterhus
b3553159a7
[ci skip] Fix UPGRADING section for the mt_srand() default
...
This is an existing function and thus belongs into section 5, not section 6.
2023-07-10 19:10:41 +02:00
Marc Bennewitz
e85fb0902c
number_format() Support rounding negative places
...
Closes GH-11487
2023-07-09 14:05:32 +01:00
Arnaud Le Blanc
627a7e4f49
[ci skip] UPGRADING
...
See GH-9104
2023-07-08 22:52:58 +02:00
Niels Dossche
49864198cc
[ci skip] NEWS and UPGRADING
...
Closes GH-11577.
2023-07-07 18:08:20 +02:00
Tim Düsterhus
61251093ab
Deprecate MT_RAND_PHP ( #11560 )
...
see https://wiki.php.net/rfc/deprecations_php_8_3#mt_rand_php
2023-07-07 12:16:48 +02:00
Tim Düsterhus
3d0cb90a1d
[ci skip] Fix ordering in deprecation sections in UPGRADING
2023-07-07 12:14:39 +02:00
Niels Dossche
f16b34f1d0
Implement GH-10024: support linting multiple files at once using php -l
...
This is supported in both the CLI and CGI modes. For CLI this required
little changes.
For CGI, the tricky part was that the options parsing happens inside the
loop. This means that options passed after the -l flag were previously
simply ignored. As we now re-enter the loop we would parse the options
again, and if they are handled but don't set the script name, then CGI
will think you want to read from standard in. To keep the same "don't
parse options" behaviour I simply wrapped the options handling inside an
if.
Closes GH-10024.
Closes GH-10710.
2023-07-05 15:20:36 +02:00
Niels Dossche
c585c0c0d4
[ci skip] NEWS and UPGRADING
2023-07-03 21:34:52 +02:00
BohwaZ
ddd9a08f56
[RFC] Transition SQLite3 to exceptions ( #11058 )
...
* Deprecate warnings in SQLite3, change returned exception class to SQLite3Exception
RFC: https://wiki.php.net/rfc/sqlite3_exceptions
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
2023-07-03 14:30:52 +01:00
Tim Düsterhus
49ef6e209d
RFC: Add #[Override] attribute ( #9836 )
...
* Add #[Override] attribute
* Move #[\Override] tests into Zend/tests/attributes/override/
* Check `check_only` before removing `ZEND_ACC_OVERRIDE`
* NEWS/UPGRADING for #[\Override]
2023-06-29 20:23:53 +02:00
Remi Collet
b406f7c67a
zip extension version 1.22.1
...
- add ZipArchive::FL_OPEN_FILE_NOW to open the file when added
instead of waiting for archive to be closed
2023-06-29 15:21:15 +02:00
Remi Collet
a2f75eb56c
[ci skip] ZipArchive::FL_RECOMPRESS constant is deprecated (doc)
2023-06-28 14:44:33 +02:00
Niels Dossche
f37884215c
[ci skip] UPGRADING
2023-06-27 18:04:11 +02:00
Remi Collet
ddb6cadb4c
NEWS and UPGRADING for zip 1.22.0
2023-06-26 16:43:59 +02:00
hanshenrik
3b0e61956e
fix file() flags error-check
...
the old flag check was flawed and would miss some flags, for example:
file(__FILE__, FILE_APPEND);
is invalid, but the old flags error check would miss it: https://3v4l.org/b2W9u
Closes GH-11483
2023-06-23 11:06:24 +02:00
Remi Collet
21aaf3321f
check PQsetErrorContextVisibility availability (libpq >= 9.6)
2023-06-21 08:47:59 +02:00
Niels Dossche
68591632b2
[RFC] Implement mb_str_pad() ( #11284 )
...
Closes GH-10203.
2023-06-20 21:22:04 +02:00
nielsdos
ad5ee8a2b7
Revert changes to DOMAttr::$value and DOMAttr::$nodeValue expansion
...
Closes GH-11469.
2023-06-19 19:52:28 +02:00
George Peter Banyard
798c40a739
[RFC] Define proper semantics for range() function ( #10826 )
...
RFC: https://wiki.php.net/rfc/proper-range-semantics
2023-06-19 14:25:26 +01:00
David CARLIER
b0d8c10fd9
ext/gd: imagerotate removes ignore_transparent argument.
...
seems to be a relic of PHP 5 but no longer makes sense in regard of gdImageRotateInterpolated.
Close GH-11426
2023-06-19 12:32:08 +01:00
Ilija Tovilo
b3e33be443
Forward shutdown exceptions to user error handlers
...
Fixes GH-10695
Closes GH-110905
2023-06-15 17:11:22 +02:00
David CARLIER
dd8514a0bd
ext/pgsql: adding pg_set_error_context_visibility.
...
another level of context for pg_last_error/pg_result_error() to include
or not the context in those. PQSHOW_CONTEXT_ERRORS being the default.
Close GH-11395
2023-06-13 18:07:39 +01:00
Niels Dossche
d22d0e26dc
Implement GH-8641: STREAM_NOTIFY_COMPLETED over HTTP never emitted
...
This adds support for the completed event. Since the read handler could
be entered twice towards the end of the stream we remember what the eof
flag was before reading so we can emit the completed event when the flag
changes to true.
Closes GH-10505.
2023-06-10 19:47:36 +02:00
Niels Dossche
79d024ac0e
Allow final modifier when using a method from a trait ( #11394 )
...
Fixes GH-11388.
Following https://wiki.php.net/rfc/horizontalreuse which introduced traits,
this should be allowed.
The implementation was refactored in 3f8c729
. That commit is the first time
the "final" check appears AFAICT, but no reason was given for why. That
commit seems to have landed in 5.4.11 and the NEWS for that version doesn't
seem to mention something relevant to the behaviour change.
This patch removes the restriction of the final modifier.
Closes GH-11394.
2023-06-07 23:53:21 +02:00