Ilija Tovilo
84cb42e0f1
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix leaking definitions on FFI::cdef()->new()
2023-07-21 10:43:13 +02:00
Ilija Tovilo
88fab26365
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix leaking definitions on FFI::cdef()->new()
2023-07-21 10:42:42 +02:00
Ilija Tovilo
11d6bea98a
Fix leaking definitions on FFI::cdef()->new()
...
Previously, FFI_G(symbols) and FFI_G(tags) were never cleaned up when calling
new on an existing object. However, if cdef() is called without parameters these
globals are NULL and might be created when new() creates new definitions. These
would then be discarded without freeing them.
Closes GH-11751
2023-07-21 10:42:19 +02:00
Sergey Panteleev
ad666eb6df
[ci skip] Update NEWS for c3ccc36
...
Fix in Streams moved from 8.2.10 to 8.2.9
2023-07-19 13:35:18 +03:00
Ilija Tovilo
b0037eda26
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix use-after-free when unregistering user stream wrapper from itself
2023-07-19 11:20:18 +02:00
Ilija Tovilo
c3ccc363c6
Fix use-after-free when unregistering user stream wrapper from itself
...
Fixes GH-11735
Closes GH-11737
2023-07-19 11:17:57 +02:00
Eric Mann
42e32a72b5
Update NEWS for php8.3.0beta1
2023-07-18 15:54:56 -07:00
Ben Ramsey
6e3c520f51
PHP-8.1 is now for PHP-8.1.23-dev
2023-07-18 16:30:49 -05:00
Ilija Tovilo
791ca5d1db
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix hash_pbkdf2 options parameter
2023-07-18 19:24:03 +02:00
Ilija Tovilo
e8c9c73118
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix hash_pbkdf2 options parameter
2023-07-18 19:23:10 +02:00
Ilija Tovilo
7cae6eb8db
Fix hash_pbkdf2 options parameter
...
The value needs to be initialized to NULL as it is optional. Furthermore, the
parameter was completely missing in the stub signature.
Closes GH-11731
2023-07-18 19:21:13 +02:00
Ilija Tovilo
9bcdf219ec
Resolve open_basedir paths on ini update
...
Closes GH-10987
2023-07-18 14:43:40 +02:00
Sergey Panteleev
796a75f967
PHP-8.2 is now for PHP 8.2.10-dev
2023-07-18 14:02:43 +03: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
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
Niels Dossche
8b1d352ed8
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Prevent potential deadlock if accelerated globals cannot be allocated
2023-07-17 13:00:00 +02:00
Niels Dossche
b0bc057e86
Prevent potential deadlock if accelerated globals cannot be allocated
...
Not sure if this is possible to hit in practice, zend_accel_error_noreturn
doesn't return so the unlock isn't called. Other callsites that use both
zend_accel_error_noreturn and zend_shared_alloc_unlock first perform the
unlocking.
Closes GH-11718.
2023-07-17 12:49:15 +02:00
George Peter Banyard
ca8dab3b8a
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix GH-11587 PDO::ATTR_STRINGIFY_FETCHES should return strings even in if PDO::ATTR_EMULATE_PREPARES is enabled
2023-07-17 07:10:16 +01:00
George Peter Banyard
5f716bf2df
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-11587 PDO::ATTR_STRINGIFY_FETCHES should return strings even in if PDO::ATTR_EMULATE_PREPARES is enabled
2023-07-17 07:09:34 +01:00
SakiTakamachi
e0aadc1c0d
Fix GH-11587 PDO::ATTR_STRINGIFY_FETCHES should return strings even in if PDO::ATTR_EMULATE_PREPARES is enabled
...
This also includes a fix for the MySQL ND driver to actually respect the user decided behaviour.
Closes GH-11622
Signed-off-by: George Peter Banyard <girgias@php.net>
2023-07-17 07:08:45 +01:00
Arnaud Le Blanc
e413419e33
[ci skip] UPGRADING / NEWS
2023-07-16 13:42:35 +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
Marc Bennewitz
591f3f619e
Prevent decimal int precision loss in number_format()
...
Closes GH-11584
2023-07-13 15:30:30 +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
Cristian Rodríguez
5572975ba7
proc_open: Use posix_spawn(3) interface on systems where it is profitable
...
As the size of the PHP process increases, forking gets slower and memory
consumption increases, degrading the performance in varying degrees.
This patch makes proc_open use posix_spawn only on systems which is known to be
safe, faster than the HAVE_FORK path and have posix_spawn_file_actions_addchdir_np(3)
action.
Non scientific benchmark shows running php own's test suite on linux completes
dozens of seconds faster, the impact is probably higher on systems where
posix_spawn is a syscall.
Closes GH-7933
2023-07-13 13:29:42 +01:00
David CARLIER
a077c2dd6c
Merge branch 'PHP-8.2'
2023-07-13 12:40:59 +01:00
David CARLIER
0309800b4d
Merge branch 'PHP-8.1' into PHP-8.2
2023-07-13 12:40:47 +01:00
David Carlier
69b4360e88
zend_gdb disable gdb detection for FreeBSD < 11.
...
ref PR: https://github.com/php/php-src/pull/11599 .
Close GH-11646
2023-07-13 12:39:58 +01:00
Niels Dossche
ea794e9cde
Implement DOMNode::contains()
...
ref: https://dom.spec.whatwg.org/#dom-node-contains
2023-07-12 19:29:07 +02:00
George Peter Banyard
2aaa7997a2
Merge branch 'PHP-8.2'
...
* PHP-8.2:
ext/intl: Fix memory leak in MessageFormatter::format()
2023-07-12 15:45:24 +01:00
George Peter Banyard
1e41b0f1a5
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
ext/intl: Fix memory leak in MessageFormatter::format()
2023-07-12 15:44:41 +01:00
George Peter Banyard
536dbd74fa
ext/intl: Fix memory leak in MessageFormatter::format()
...
Closes GH-11658
2023-07-12 15:43:45 +01:00
Ilija Tovilo
a833937725
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix double-compilation of arrow-function
2023-07-12 11:01:38 +02:00
Ilija Tovilo
060df83a98
Fix double-compilation of arrow-function
...
We transform the arrow function by nesting the expression into a return
statement. If we compile the arrow function twice this would be done twice,
leading to a compile assertion.
Fix oss-fuzz #60411
Closes GH-11632
2023-07-12 11:01:23 +02:00
Niels Dossche
832a3d193f
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-10914: OPCache with Enum and Callback functions results in segmentation fault
2023-07-11 17:40:21 +02:00
Niels Dossche
bc42179133
Fix GH-10914: OPCache with Enum and Callback functions results in segmentation fault
...
See linked issue for analysis.
Closes GH-11675.
2023-07-11 17:38:09 +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
Derick Rethans
a4bdaeabf6
Fix bug GH-11600: Can't parse time strings which include (narrow) non-breaking space characters
2023-07-11 16:29:04 +01:00
Niels Dossche
2957be202e
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
[ci skip] NEWS
2023-07-10 16:02:31 +02:00
Niels Dossche
3d9c557041
[ci skip] NEWS
2023-07-10 16:01:52 +02:00
Niels Dossche
57ff1c354e
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-11630: proc_nice_basic.phpt only works at certain nice levels
Fix GH-11629: bug77020.phpt tries to send mail
Fix GH-11625: DOMElement::replaceWith() doesn't replace node with DOMDocumentFragment but just deletes node or causes wrapping <></> depending on libxml2 version
2023-07-10 13:34:21 +02:00
Niels Dossche
15ff830373
Fix GH-11625: DOMElement::replaceWith() doesn't replace node with DOMDocumentFragment but just deletes node or causes wrapping <></> depending on libxml2 version
...
Depending on the libxml2 version, the behaviour is either to not
render the fragment correctly, or to wrap it inside <></>. Fix it by
unpacking fragments manually. This has the side effect that we need to
move the unlinking check in the replacement function to earlier because
the empty child list is now possible in non-error cases.
Also fixes a mistake in the linked list management.
Closes GH-11627.
2023-07-10 13:29:31 +02:00