1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Commit Graph

132531 Commits

Author SHA1 Message Date
Ilija Tovilo
dde1d9e102 Merge branch 'PHP-8.2'
* PHP-8.2:
  Retire AppVeyor
2023-07-05 15:17:11 +02:00
Ilija Tovilo
80153c9c2b Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Retire AppVeyor
2023-07-05 15:16:01 +02:00
Ilija Tovilo
f47dc259aa Retire AppVeyor
Closes GH-11566
2023-07-05 15:14:20 +02:00
Ilija Tovilo
61a49ae841 Merge branch 'PHP-8.2'
* PHP-8.2:
  Attempt to improve setup-slapd.sh stability
2023-07-05 15:08:30 +02:00
Ilija Tovilo
463e20b510 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Attempt to improve setup-slapd.sh stability
2023-07-05 15:08:22 +02:00
Ilija Tovilo
4cc800fcb4 Attempt to improve setup-slapd.sh stability
Don't restart multiple times, restart at the end where we already have a retry
loop with a small delay.

Closes GH-11590
2023-07-05 15:07:41 +02:00
Jakub Zelenka
6091603b53 Update NEWS for PHP 8.3.0alpha3 2023-07-05 11:05:10 +01:00
Ilija Tovilo
188072a58f Revert "Fix test after reverted commit"
This reverts commit 0ce4f91d73.
2023-07-04 23:36:22 +02:00
Ilija Tovilo
ad1b70d67e Revert "Revert "Remove name field from the zend_constant struct (#10954)""
This reverts commit 9f4bd3040d.
2023-07-04 16:42:40 +02:00
Ilija Tovilo
149fb8fc34 Merge branch 'PHP-8.2'
* PHP-8.2:
  Use waitpid(-1) over WAIT_ANY
2023-07-04 10:29:22 +02:00
Ilija Tovilo
60dd88c93e Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Use waitpid(-1) over WAIT_ANY
2023-07-04 10:29:14 +02:00
Ilija Tovilo
46e9c5104c Use waitpid(-1) over WAIT_ANY
This macro is only available in glibc.

Closes GH-11588
2023-07-04 10:28:59 +02:00
Ilija Tovilo
7b355e8d34 Revert "Merge branch 'PHP-8.2'"
This reverts commit 45a3f178dc, reversing
changes made to b2a54bc6af.
2023-07-04 09:18:49 +02:00
Ilija Tovilo
779028c387 Merge branch 'PHP-8.2'
* PHP-8.2:
  Revert "Fix GH-9967 Add support for generating custom function, class const, and property attributes in stubs"
2023-07-04 09:18:29 +02:00
Ilija Tovilo
ef4f08832c Revert "Fix GH-9967 Add support for generating custom function, class const, and property attributes in stubs"
This reverts commit d7ab0ff0c8.
2023-07-04 09:11:14 +02:00
Niels Dossche
c585c0c0d4 [ci skip] NEWS and UPGRADING 2023-07-03 21:34:52 +02:00
Niels Dossche
87e7b61d8f Cleanup macro usage in ext/dom and ext/libxml
With the new lifetime system in place, we can simplify some macros.
2023-07-03 21:32:48 +02:00
Niels Dossche
003ebdd039 Fix GH-9628: Implicitly removing nodes from \DOMDocument breaks existing references
Change the way lifetime works in ext/libxml and ext/dom

Previously, a node could be freed even when holding a userland reference
to it. This resulted in exceptions when trying to access that node after
it has been implicitly or explicitly removed. After this patch, a node
will only be freed when the last userland reference disappears.

Fixes GH-9628.
Closes GH-11576.
2023-07-03 21:31:57 +02:00
Niels Dossche
f62757e74a Add tests for DOMProcessingInstruction class 2023-07-03 20:20:05 +02:00
Niels Dossche
bccd924e3f Add edge-case testcase for offset in DOMNamedNodeMap 2023-07-03 20:20:05 +02:00
Niels Dossche
2aebca899c Add negative test for isElementContentWhitespace()
This was only tested for the "true" case. So for example, if this
function ever broke and only returned true, this wouldn't be caught.
2023-07-03 20:20:05 +02:00
Niels Dossche
45c93c173c Remove always-false check
There are no prop handlers with a NULL key.
2023-07-03 20:20:05 +02:00
David CARLIER
44fa68b064 ext/intl: intl_CharFromString using zend_string_truncate to adjust th… (#11575)
* ext/intl: intl_CharFromString using zend_string_truncate to adjust the size of the buffer.
2023-07-03 16:41:20 +01:00
Máté Kocsis
0ce4f91d73 Fix test after reverted commit 2023-07-03 16:49:45 +02:00
Máté Kocsis
4db4f0ba00 Display the readonly modifier for readonly classes 2023-07-03 16:02:25 +02:00
Máté Kocsis
3c6590a391 Add support for extending multiple interfaces in the manual
After https://github.com/php/phd/pull/75/
2023-07-03 16:02:25 +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
Máté Kocsis
9f4bd3040d Revert "Remove name field from the zend_constant struct (#10954)"
This reverts commit f42992f580.

Fix GH-11423
2023-07-03 15:16:24 +02:00
Máté Kocsis
45a3f178dc Merge branch 'PHP-8.2'
* PHP-8.2:
  Fix GH-9967 Add support for generating custom function, class const, and property attributes in stubs

Closes GH-10170
2023-07-03 11:17:08 +02:00
Máté Kocsis
d7ab0ff0c8 Fix GH-9967 Add support for generating custom function, class const, and property attributes in stubs 2023-07-03 08:32:58 +02:00
Niels Dossche
b2a54bc6af Merge branch 'PHP-8.2'
* PHP-8.2:
  Fix GH-11300: license issue: restricted unicode license headers
2023-07-01 22:03:08 +02:00
Niels Dossche
297fec099e Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Fix GH-11300: license issue: restricted unicode license headers
2023-07-01 21:56:40 +02:00
Niels Dossche
ee42621ff6 Fix GH-11300: license issue: restricted unicode license headers
Closes GH-11572.
2023-07-01 21:55:21 +02:00
Anatol Belski
775bc49700 Merge branch 'PHP-8.2'
* PHP-8.2:
  NEWS: Add note for #11298
  NEWS: Add note for #11298
2023-07-01 18:58:18 +02:00
Anatol Belski
4e8b1ddc53 NEWS: Add note for #11298
[ci skip]

Signed-off-by: Anatol Belski <ab@php.net>
2023-07-01 18:57:46 +02:00
Anatol Belski
abc5ddb182 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  NEWS: Add note for #11298
2023-07-01 18:57:09 +02:00
Anatol Belski
928fc68c9e NEWS: Add note for #11298
[ci skip]

Signed-off-by: Anatol Belski <ab@php.net>
2023-07-01 18:56:07 +02:00
Anatol Belski
292e10b14b fileinfo: Add test for xz type
Ref: #11298

Signed-off-by: Anatol Belski <ab@php.net>
2023-07-01 18:37:53 +02:00
Anatol Belski
d6c9a06bcd Merge branch 'PHP-8.2'
* PHP-8.2:
  fileinfo: Backport xz detection patch
  fileinfo: Backport xz detection fix
2023-07-01 18:03:47 +02:00
Anatol Belski
97f0d97d2a fileinfo: Backport xz detection patch
Upstream: 9b0459afab

Fixes: #11298

Signed-off-by: Anatol Belski <ab@php.net>
2023-07-01 18:02:46 +02:00
Anatol Belski
fc165ddc61 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  fileinfo: Backport xz detection fix
2023-07-01 18:00:25 +02:00
Anatol Belski
86f79b299e fileinfo: Backport xz detection fix
Upstream: 9b0459afab

Fixes: #11298

Signed-off-by: Anatol Belski <ab@php.net>
2023-07-01 17:58:38 +02:00
Máté Kocsis
3906bccc00 Add support for typed class constants in stubs 2023-07-01 11:50:04 +02:00
Niels Dossche
78d98e50c4 Fix GH-11567: mb_str_pad causes access violation
When not providing a pad string, *and* not having other defaulted
arguments, the function would crash on a NULL pad zend_string*.
Despite testing with an empty pad string, the issue wasn't found because
when using named arguments the pad string *is* filled in.
2023-06-30 16:40:43 +02:00
Bob Weinand
9fe33c8458 Merge branch 'PHP-8.2' 2023-06-30 15:20:55 +02:00
Bob Weinand
cad47be8b6 Fix GH-11548 (Argument corruption when calling XMLReader::open or XMLReader::XML non-statically with observer active) 2023-06-30 15:18:37 +02:00
Alexander M. Turek
5d5664f72f [skip ci] Fix typo (#11558) 2023-06-30 12:59:33 +02:00
Ilija Tovilo
28117d718f Merge branch 'PHP-8.2'
* PHP-8.2:
  Attempt to fix gh11498.phpt on MSAN
2023-06-30 09:42:46 +02:00
Ilija Tovilo
04cd8859dd Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Attempt to fix gh11498.phpt on MSAN
2023-06-30 09:42:34 +02:00
Ilija Tovilo
07dd0c80a8 Attempt to fix gh11498.phpt on MSAN
The issue might be that due to slow instrumentation the process might end before
we get to add it to the processes list. If the SIGCHLD handler executes before
adding the process to the list it will never be removed again.
2023-06-30 09:39:19 +02:00