Eric Mann
316a244fee
Update versions for PHP 8.3.0beta1
php-8.3.0beta1
2023-07-18 15:41:20 -07:00
Ben Ramsey
6e6e301038
Merge branch 'PHP-8.2'
2023-07-18 16:39:35 -05:00
Ben Ramsey
ad01b6e8c4
Merge branch 'PHP-8.1' into PHP-8.2
2023-07-18 16:39:18 -05: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
eater
7236dfef2c
ext/gettext: resolve underqouting that breaks with autoconf 2.72 ( #11427 )
2023-07-18 19:02:40 +02:00
Peter Kokot
700f6918e6
Fix Autoconf check for development versions ( #11532 )
...
When Autoconf version includes also development patch character (for
example, 2.72c), such as in unreleased Autoconf versions, this now
sets proper number for checking minimum required Autoconf version.
2023-07-18 17:54:00 +02:00
Máté Kocsis
c322da0606
Fix misleading pass by reference error message ( #10639 )
2023-07-18 15:02:38 +02:00
Ilija Tovilo
9bcdf219ec
Resolve open_basedir paths on ini update
...
Closes GH-10987
2023-07-18 14:43:40 +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
Máté Kocsis
1dcac9619c
Declare type for ext/snmp internal class constants
2023-07-18 13:51:33 +02:00
Sergey Panteleev
3174af7261
Merge branch 'PHP-8.2'
...
* PHP-8.2:
PHP-8.2 is now for PHP 8.2.10-dev
# Conflicts:
# Zend/zend.h
# configure.ac
# main/php_version.h
2023-07-18 14:06:02 +03:00
Sergey Panteleev
796a75f967
PHP-8.2 is now for PHP 8.2.10-dev
2023-07-18 14:02:43 +03:00
Máté Kocsis
a5ad7e09d5
Implement stream_context_set_options()
2023-07-18 12:59:21 +02:00
Máté Kocsis
d9a7f6741e
Deprecate ReflectionProperty::setValue() with an incorrect 1st arg type
2023-07-18 12:59:21 +02:00
Máté Kocsis
f41220fe5d
Implement ReflectionMethod::createFromMethodName()
2023-07-18 12:59:21 +02:00
Máté Kocsis
840d665583
Deprecate Phar::setStub(resource $stub, int $length)
2023-07-18 12:59:21 +02:00
Máté Kocsis
7ae0273ba3
Make the $row param of pg_fetch_result(), pg_field_prtlen() and pg_field_is_null() nullable
2023-07-18 12:59:21 +02:00
Máté Kocsis
b3bd55f244
Implement ldap_exop_sync
2023-07-18 12:59:21 +02:00
Máté Kocsis
72aada3c7c
Implement ldap_connect_wallet()
2023-07-18 12:59:21 +02:00
Máté Kocsis
1486f52a12
Implement IntlGregorianCalendar::createFromDate() and IntlGregorianCalendar::createFromDateTime()
2023-07-18 12:59:21 +02:00
Máté Kocsis
f236eb83b4
Add IntlCalendar::setDate() and IntlCalendar::setDateTime()
2023-07-18 12:59:21 +02:00
Máté Kocsis
1126232053
Deprecate calling get_class() and get_parent_class() without arguments
2023-07-18 12:59:21 +02:00
Máté Kocsis
4acf0084dc
Deprecate calling FFI::cast(), FFI::new(), and FFI::type() statically
2023-07-18 12:59:21 +02:00
Máté Kocsis
134441efa9
Deprecate calling dba_fetch() with $dba at the 3rd parameter
2023-07-18 12:59:21 +02:00
Máté Kocsis
9c7c0a0b93
Implement DatePeriod::createFromISO8601String()
2023-07-18 12:59:21 +02:00
Ilija Tovilo
1057cce1c0
Always memoize calls in lhs of coalesce assignment
...
We don't want to invoke calls twice, even if they are considered "variables",
i.e. might be writable if returning a reference. Function calls behave the same
in all BP contexts so they don't need to be invoked twice. The singular
exception to this is nullsafe coalesce in isset/empty, because it needs to
return false/true respectively when short-circuited. However, since nullsafe
calls are not allwed in write context we may ignore this problem.
Closes GH-11592
2023-07-18 12:48:00 +02:00
Niels Dossche
c0ce3e7efa
Get rid of some unnecessary string conversion ( #11733 )
...
For typed properties that are of type "string", we don't need to do any
conversion as the zval will already be a string. Removing this
simplifies code and avoids unnecessary refcounting.
2023-07-18 11:24:06 +02:00
Máté Kocsis
6988973bc6
Declare type for ext/ffi internal class constants
...
Since the relevant classes are final, it's straightforward to declare the type of these class constants
2023-07-18 10:09:26 +02:00
Gabriel Fontes
cd9dba81c7
small fixes
2023-07-18 08:31:02 +01:00
Ilija Tovilo
a48b977d3f
Use :- as ini interpolation fallback separator
2023-07-18 08:31:02 +01:00
Gabriel Fontes
bc8b9aedf6
Add fallback value syntax for ini variables
2023-07-18 08:31:02 +01:00
Ilija Tovilo
0b0cec5b8a
Fix clang warning
...
has_range_constraint should can be a bool, remove unused visited field.
Closes GH-11729
2023-07-18 00:49:13 +02:00
Ilija Tovilo
1a0ef2c1cc
Revert "Remove name field from the zend_constant struct ( #10954 )"
...
This reverts commit f42992f580 .
Closes GH-11604
2023-07-17 22:32:41 +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
5b5a3d79da
Split off some methods so they can be reused in different places
2023-07-17 20:06:38 +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
c97507b5c1
Fix build on Windows
2023-07-17 14:28:06 +02:00
Ilija Tovilo
1c76da62db
Fix gc_status type info
...
Closes GH-11722
2023-07-17 13:49:23 +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
9c5cf6594d
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Prevent potential deadlock if accelerated globals cannot be allocated
2023-07-17 13:03:11 +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