Peter Kokot
801787d51d
Simplify strcasestr check in fileinfo ( #13365 )
...
The strcasestr is not present on Windows and on Solaris 10 until Solaris
11 implementation in string.h.
At this point strcasestr is not used in the bundled libmagic (file)
library due to patch removing the strcasestr usage in file.c, however
future libmagic version bump might need it again. This simplifies the
strcasestr check if available on the system without running the test
code and avoiding the unknown issue when cross-compiling. If found, the
HAVE_STRCASESTR is defined, otherwise the strcasestr.c is added to the
build sources.
2024-02-10 15:11:48 +01:00
Niels Dossche
5e7783e200
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fixed not to set CR_MALFORMED_PACKET to error if CR_SERVER_GONE_ERROR is already set
2024-02-10 14:05:26 +01:00
Niels Dossche
ca60912c8f
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fixed not to set CR_MALFORMED_PACKET to error if CR_SERVER_GONE_ERROR is already set
2024-02-10 14:05:19 +01:00
Saki Takamachi
199e48b567
Fixed not to set CR_MALFORMED_PACKET to error if CR_SERVER_GONE_ERROR is already set
...
Closes GH-11951.
2024-02-10 14:04:49 +01:00
Niels Dossche
9fc7be8c53
Use bools
2024-02-10 14:01:42 +01:00
Niels Dossche
79e31c2392
Don't use heap allocations for registering DOM property handlers
2024-02-10 14:01:42 +01:00
Niels Dossche
f537ed9dfb
Cleanup useless stuff in php_dom.c
2024-02-10 14:01:42 +01:00
Peter Kokot
b558a18c15
Remove unused <extension>_SHARED_LIBADD variables ( #13361 )
...
These are used to store libraries needed to link when extension is
shared and needs libraries linked to it. Since other similar types of
extensions don't have these variables substituted in Makefile, these can
be also removed. The filter and mysqli don't need any libraries for
linking here.
2024-02-09 22:20:32 +01:00
Peter Kokot
41e3044f48
Remove obsolete check for missing fclose declaration ( #13360 )
...
SunOS 4.1.4 from 1994 didn't have fclose declared in standard header
stdio.h. This doesn't need to be checked anymore, as fclose is part of
the C89+ standard and declaration is present on Solaris 10 (SunOS 5.10)
and later.
2024-02-09 18:11:49 +00:00
Ilija Tovilo
59211a51b7
[skip ci] Move RFC1867 tests as requested by Jakub
2024-02-09 16:01:14 +01:00
Saki Takamachi
f62f6a6d4b
Follow-up to remove IMAP ext ( #13248 )
...
Fixed and optimized tests that depend on imap in standard ext tests.
Also, the location of the setup script for hmailserver has changed.
2024-02-09 21:32:07 +09:00
haszi
3ce7bf2a77
Clear handler status flag in handler init
...
Closes GH-13087
2024-02-09 12:00:56 +00:00
Jorg Adam Sowa
6647d5f609
ext/bcmath: Remove debug.c file ( #13359 )
2024-02-09 11:29:57 +00:00
Peter Kokot
968f048b4c
Fix undefined symbol pthread_attr_get_np on Solaris ( #13358 )
...
Solaris doesn't have pthread_attr_get_np().
Checked on Oracle Solaris 11.4.
2024-02-09 00:46:07 +01:00
David Carlier
c5fbcfa7be
GH-13355 fix new pgsql test
2024-02-08 22:44:03 +00:00
David Carlier
aa2e921ef7
Merge branch 'PHP-8.3'
2024-02-08 22:42:55 +00:00
David Carlier
a9c01b92b2
Merge branch 'PHP-8.2' into PHP-8.3
2024-02-08 22:42:19 +00:00
George Barbarosie
452e008f4f
Fix GH-13354: ext/pgsql: pg_execute, pg_send_query_params and_send_execute null value by reference.
...
For these, when passing null values by refence, queries return erroneous values unlike
pg_query_params behaving as expected.
close GH-13355.
2024-02-08 22:42:04 +00:00
Peter Kokot
3e237ecfb3
Remove remainings of recent oci extensions removal ( #13352 )
...
Following a4d64b2605
2024-02-08 18:04:00 +01:00
Ilija Tovilo
cd66fcc68b
Add request_parse_body() function
...
RFC: https://wiki.php.net/rfc/rfc1867-non-post
This function allows populating the $_POST and $_FILES globals for non-post
requests. This avoids manual parsing of RFC1867 requests.
Fixes #55815
Closes GH-11472
2024-02-08 12:08:07 +01:00
Ilija Tovilo
2f894389b6
Revert "Use __attribute__((assume())) in ZEND_ASSUME when available"
...
This reverts commit bf4ec8bd9d
.
Partial revert, keep the phpdbg changes.
2024-02-08 11:59:36 +01:00
Peter Kokot
5752bbdad5
[skip ci] Add oci extensions notes to upgrading docs
2024-02-07 22:47:56 +01:00
Peter Kokot
e76f9e2b50
Remove DARWIN symbol ( #13346 )
...
When targeting Darwin systems (macOS, etc.), the compiler defines the
__APPLE__ symbol, which should be sufficient and a more established
detection method practice in these cases.
2024-02-07 21:07:48 +01:00
Niels Dossche
aed6528b00
Use a local variable such that a register is used for the column before writing it to memory
2024-02-07 18:02:42 +01:00
Niels Dossche
2f1fe3209c
Use a direct statically-known call for decoding in the fast path
2024-02-07 18:02:42 +01:00
Ilija Tovilo
82665fd3a4
[skip ci] Fix oudated credits_ext.h file
2024-02-07 17:19:59 +01:00
Derick Rethans
af80cba8a3
Per his request, make Calvin code owner for ODBC
2024-02-07 15:39:07 +00:00
Derick Rethans
a4d64b2605
Removed ext/oci8 and ext/pdo_oci ( #13327 )
...
* Removed ext/oci8 and ext/pdo_oci
They now live in their own repositories:
https://github.com/php/pecl-database-oci8
https://github.com/php/pecl-database-pdo_oci
As per: https://wiki.php.net/rfc/unbundle_imap_pspell_oci8
2024-02-07 15:34:39 +00:00
Ilija Tovilo
c149b4f56f
Fix missing syntax error message in cli-server router script
...
Fixes GH-13113
Closes GH-13275
2024-02-07 16:13:08 +01:00
Ilija Tovilo
18cdfd3f51
Skip frameless functions with zend_execute_internal
...
zend_execute_internal is used to intercept function calls. We must use the
DO_FCALL opcode in this instance.
2024-02-07 16:05:15 +01:00
Ilija Tovilo
49ebfb04ef
Fix JMP_FRAMELESS with ZEND_USE_ABS_JMP_ADDR
...
which is used on 32-bit machines.
2024-02-07 15:50:38 +01:00
Ilija Tovilo
294c9ec36c
[skip ci] Skip push to forks
...
Creating PRs against forks requries having up-to-date target branches. Pushing
to these currently triggers CI, which is useless as this commit was already
tested upstream. Contributions are tested via pull request.
2024-02-07 13:17:40 +01:00
Ilija Tovilo
97e6c54336
Fix RC inference narrowing for ASSIGN_OBJ
...
Fixes oss-fuzz #66519
Closes GH-13345
2024-02-07 13:03:14 +01:00
Peter Kokot
f9cfd40fa2
Refactor utsname.domainname struct member Autoconf check ( #13336 )
...
* Refactor utsname.domainname struct member Autoconf check
Autoconf's AC_CHECK_MEMBERS macro (available since Autoconf 2.50) can be
used instead of the compile check. This was originally implemented for
IRIX compatibility, when Autoconf 2.13 didn't have the struct members
checking macro yet.
Macro by default here defines the HAVE_STRUCT_UTSNAME_DOMAINNAME symbol.
* Remove also redundant DARWIN symbol check
Checking in the configuration step also correctly detects missing struct
member on Darwin systems (macos...).
2024-02-06 23:21:42 +01:00
Ilija Tovilo
0b1ab42ab8
Fix refactoring mistake
...
Odd, I rebuilt the project but somehow missed this.
2024-02-06 17:50:53 +01:00
Ilija Tovilo
631bc81607
Implement stackless internal function calls
...
Co-authored-by: Dmitry Stogov <dmitry@zend.com>
Closes GH-12461
2024-02-06 17:42:28 +01:00
Derick Rethans
7aa2b6294b
Moving this to php/policies
2024-02-06 11:39:12 +00:00
Niels Dossche
13e7c086a7
Merge branch 'PHP-8.3'
...
* PHP-8.3:
[ci skip] Fix NEWS date again
2024-02-05 22:56:00 +01:00
Niels Dossche
7319ca479e
[ci skip] Fix NEWS date again
2024-02-05 22:55:52 +01:00
Niels Dossche
9bd2abe6e1
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix unlikely memory leak in case of namespace removal with extremely deep trees
2024-02-05 22:49:55 +01:00
Niels Dossche
ab508c98b3
Fix unlikely memory leak in case of namespace removal with extremely deep trees
2024-02-05 22:49:15 +01:00
David Carlier
b320aabc5e
zend call stack fixing stack limit for macOs arm64.
...
8MB sounded a prudent size for older 10.9 macOs release, however
with newer mac with arm64, it triggers a stack overflow.
close GH-13319
2024-02-05 19:32:29 +00:00
Tim Düsterhus
ce2d26363f
random: Reuse the seed128/seed256 helpers when seeding using the CSPRNG ( #13311 )
...
Instead of writing to the engine's state struct directly, use the helpers for
consistency.
2024-02-05 17:00:33 +01:00
Ilija Tovilo
f8c9928e6f
Fix tests with explicit opcache.log_verbosity_level setting
2024-02-05 15:00:32 +01:00
Marc Bennewitz
0016b3085c
Added DateTime[Immutable]::[get|set]Microseconds ( #12557 )
...
* Added DateTime[Immutable]::[get|set]Microseconds
2024-02-05 12:14:18 +00:00
Ilija Tovilo
f91833d297
Fix RC inference for DECLARE_LAMBDA_FUNCTION
...
It doesn't seem like the VM can return RCn. However, the JIT fails without it.
I'll need to look into this more closely.
2024-02-05 12:19:18 +01:00
Ilija Tovilo
79e8f20e56
Add type inference for various missing opcodes
...
Closes GH-13304
2024-02-05 11:48:48 +01:00
Niels Dossche
caaf9d041d
[ci skip] NEWS
2024-02-05 08:31:24 +01:00
Niels Dossche
05874d4c23
[ci skip] Make UPGRADING bullet points consistent
2024-02-04 23:02:58 +01:00
Niels Dossche
3b5986db69
Implement GH-12908: Show attribute name/class in ReflectionAttribute dump
...
This is consistent with how many other Reflection classes have a name
field, and it makes debugging easier.
Closes GH-12908.
Closes GH-12917.
2024-02-04 23:02:02 +01:00