Commit Graph

137427 Commits

Author SHA1 Message Date
Kamil Tekiela
0dfafdbc85
Remove PHP 6 leftovers and fix mysqli tests (#15464) 2024-08-17 18:05:01 +02:00
Christoph M. Becker
a3196b3f72
Drop support for MYSQL_TEST_SKIP_CONNECT_FAILURE (#15461)
Closes GH-15457.
2024-08-17 17:45:07 +02:00
Peter Kokot
0064c42215
Autotools: Simplify PHP_PDO_DBLIB conditions
The PHP_PDO_DBLIB value no is already checked in the main if sentence.
2024-08-17 15:10:10 +02:00
Peter Kokot
b2640ee7f7
Autotools: Replace obsolete backticks with $(...) in apache2handler (#15454)
Obsolete backticks can be replaced with the recommended $(...) (on
shells where the "newer" style still doesn't work, for example, on
Solaris 10 default shell, Autoconf takes care of that by re-executing
the script itself).
2024-08-17 14:37:32 +02:00
Peter Kokot
b86dfd76a2
Remove php_win32_init_gettimeofday declaration (#15451)
* Remove php_win32_init_gettimeofday declaration

Follow-up of GH-15400 (25afbdb09e).

* Remove unused header include

* Include php.h before win32/ioutil.h
2024-08-17 13:58:40 +02:00
Peter Kokot
8db3d36f2f
Autotools: Remove redundant SAPI_SHARED assignment (#15453)
When the target system is Darwin, the SAPI_SHARED is already set to
libs/libphp.so (instead of libs/libphp.dylib) in configure.ac and in
php.m4 via PHP_SHLIB_SUFFIX_NAMES.
2024-08-17 10:02:33 +02:00
Peter Kokot
a400298d96
Add hash extension to soap dependencies (#15449)
This adds the hash extension to the configure phase as a required
dependency.
2024-08-17 00:20:20 +02:00
Peter Kokot
565a31c7c5
Autotools: Simplify PHP_SELECT_SAPI in apache2handler SAPI (#15444) 2024-08-17 00:19:44 +02:00
Juliette
4c5767f62f
PHP 8.4 | Exit as function: fix incorrect parameter name (#15433)
Follow up on 13483

As previously reported in https://github.com/php/php-src/pull/13483#discussion_r1718546927:

> The parameter names seem to be incorrect.
>
> It should be `$status`, not `$code`.
>
> The RFC explicitly uses that parameter name in the proposal: https://wiki.php.net/rfc/exit-as-function#proposal
>
> It is also the name already used in the [manual](https://www.php.net/exit).
>
> Lastly, the parameter name `$status` better covers what can be passed: either a status _message_ or a status _code_.
> While `$code` would read pretty weird when passing a message:
> ```php
> exit(code: 'message');
> ```

This commit attempts to fix this.

Includes adding a test for exit/die using a named argument.

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2024-08-16 22:35:16 +01:00
Go Kudo
f0d0293748 Merge branch 'PHP-8.3' 2024-08-16 20:27:35 +00:00
Go Kudo
5df1b55038 [ci skip] fix NEWS 2024-08-16 20:26:31 +00:00
Go Kudo
05d92db5e5 Merge branch 'PHP-8.3' 2024-08-16 20:23:14 +00:00
Go Kudo
d87fd356dc Merge branch 'PHP-8.2' into PHP-8.3
# Conflicts:
#	NEWS
2024-08-16 20:21:51 +00:00
Go Kudo
836e6fa900
zend_max_execution_timer: fix gcc compatibility (#15447) 2024-08-17 05:20:04 +09:00
David CARLIER
b5568a008f
GH-15440: adding CURLOPT_TCP_KEEPCNT constant (8.9.0) (#15446)
close GH-15446
2024-08-16 20:47:41 +01:00
Go Kudo
bb0c32583a [ci skip] Update ext/random year for zeriyoshi in EXTENSIONS 2024-08-17 03:26:08 +09:00
Go Kudo
bd843d760f [ci skip] fix NEWS 2024-08-17 03:12:38 +09:00
Go Kudo
14390a04bb [ci skip] Update NEWS 2024-08-17 02:59:24 +09:00
Go Kudo
140a257f2f [ci skip] Update NEWS 2024-08-17 02:58:25 +09:00
Go Kudo
ad998356dd [ci skip] Update NEWS 2024-08-17 02:57:42 +09:00
Go Kudo
9168b18c84 Merge branch 'PHP-8.3' 2024-08-17 02:57:12 +09:00
Go Kudo
6140f9a6f7 Merge branch 'PHP-8.2' into PHP-8.3 2024-08-17 02:54:38 +09:00
Go Kudo
ec9cdcd2bc
Fix MSan false-positive in zend_max_execution_timer (#15408)
Explicitly mark memory regions as unpoisoned for zend_max_execution_timer on ZTS, as MemorySanitizer in clang >= 18 causes false positives.
2024-08-17 02:54:03 +09:00
Peter Kokot
80825672d1
Autotools: Fix external PCRE JIT check (#15430)
If using a custom PCRE library installation, also CFLAGS and LIBS
variables need to be adapted for the JIT check to be able to find it.
2024-08-16 19:21:13 +02:00
Peter Kokot
173965331c
Autotools: Use AS_* macros in apache2handler SAPI (#15423) 2024-08-16 18:32:13 +02:00
Peter Kokot
24387176d0
Autotools: Sync CS in sapi/cgi (#15407)
- AS_* macros used
- Indentation level synced
- Obsolete backticks replaced with recommended $(...) (on shells where
  the "newer" style still doesn't work, for example on Solaris 10
  default shell, Autoconf takes care of that by re-executing the script
  itself)
2024-08-16 18:30:51 +02:00
Go Kudo
d6afe05380
libtool: Don't remove gcov *.gcno files (#15441)
The libtool bundled with PHP is outdated and deletes *.gcno files used by
gcov during the build process.

While this issue has already been resolved upstream [1], incorporating the
fix at this point may not be practical. Therefore, we attempt to apply a
fix to the current version.

This change will enable proper coverage output for third-party PHP
extensions.

[1]: https://github.com/autotools-mirror/libtool/blob/master/NEWS#L605
2024-08-16 18:18:25 +02:00
Peter Kokot
8853cf3ae9
Autotools: Add note about PHP_ADD_EXTENSION_DEP usage
Until the AWK regex is implemented better, this macro must be called on
its own line with unquoted arguments.

[skip ci]
2024-08-15 16:40:23 +02:00
Christoph M. Becker
b0ac9bf669
Explicitly drop support for old clang versions on Windows (GH-15415)
* Explicitly drop support for old clang versions on Windows

This ensures compatibility with the typedef redefinitions we use, and
makes it clear during the `configure` stage that old compiler versions
are not supported.

See <https://releases.llvm.org/> regarding the release history of clang.

We also remove support for two number versions of clang, since as of
LLVM 4.0.0 the project uses a three number versioning scheme; see
<https://blog.llvm.org/2016/12/llvms-new-versioning-scheme.html>.
2024-08-15 14:30:23 +02:00
Remi Collet
a6b7f134a9
exit_as_funtion RFC follow-up: ensure default INI settings used in status test (#15420) 2024-08-15 11:13:32 +01:00
Gina Peter Banyard
3e226af533
ext/opcache/ZendAccelerator.c: Restrict MD5 header include to Windows (#15418)
As it is only ever used in accel_gen_uname_id() which is Windows only
2024-08-15 11:12:04 +01:00
Jorg Adam Sowa
21fa5e15f9
ext/session: session_create_id() now throws a ValueError for large prefix (#15338) 2024-08-15 11:10:18 +01:00
Peter Kokot
794ba29a57
Autotools: Fix PHP_EMBED_TYPE variable substitution (#15414)
This is a follow-up of f6dcca00bc as
Autoconf always seems to do a variable substitution, even when called
conditionally. When passing argument other than shared or static to
--enable-embed=ARGUMENT this now puts an empty string inside generated
php-config script.
2024-08-15 11:42:47 +02:00
Peter Kokot
4f4794b12d
Autotools: Sync CS in fpm SAPI (#15412)
- AS_* macros used
- obsolete backticks replaced with $(...)
- redundant double quotes removed
2024-08-15 11:39:09 +02:00
Peter Kokot
1e4ed4adaa
Autotools: Sync CS in sapi/fuzzer (#15417)
- AS_VAR_IF macro used
- redundant quotes removed
- PHP_FUZZER_TARGET macro body synced with the rest of the macros in
  php-src
- PHP_FUZZER_TARGET arguments quoted
2024-08-15 11:38:34 +02:00
Christoph M. Becker
4b2dc58651
Fix format specifiers and arguments in com_dotnet (GH-15398)
This is mostly about minor glitches (signedness or length confusion),
but also fixes two occasions where `zend_string`s still have been
regarded as `char *`.

We also add a regression test case for failing property name lookup,
since that is the most relevant issue we're fixing here.
2024-08-15 10:59:10 +02:00
Gina Peter Bnayard
04320d2fba ext/phar: Use standard C types 2024-08-15 01:02:33 +02:00
Gina Peter Bnayard
4a4aae540b Zend/zend_object_handlers.c: Remove unused include 2024-08-15 00:08:19 +02:00
Calvin Buckley
d5d537bf7c
[ci skip] Update NEWS for PHP 8.4.0 beta3
Skipping beta2 due to a release issue.
2024-08-14 18:05:48 -03:00
Calvin Buckley
9a70b7c221
[ci skip] Update NEWS for PHP 8.4.0 beta2 2024-08-14 17:30:20 -03:00
Peter Kokot
f09354e5d0
Autotools: Sync CS in sapi/cli (#15410)
- AS_* macros used
2024-08-14 21:39:19 +02:00
Peter Kokot
bca18bc585
Autotools: Sync CS in sapi/litespeed (#15409)
- AS_CASE macro used
2024-08-14 21:38:36 +02:00
Gina Peter Banyard
8093893496
ext/dba: Remove arg num check prior to ZPP checks (#15401) 2024-08-14 20:20:11 +01:00
Christoph M. Becker
ec2655f88b
Voidify getfilesystemtime() (GH-15413)
The function always returned 0, and the return values was never used,
so we declare it to return void.

While we're at it, we also fix the space indentation of the comment.
2024-08-14 21:09:26 +02:00
Gina Peter Banyard
059fe6c28b
ext/standard/php_string.h: Remove declarations that do not have an implementation (#15402)
This was overlooked, by my younger self, in GH-8195.
2024-08-14 20:04:51 +01:00
Peter Kokot
53d6ed8a6b
Autotools: Fix typo in FPM TCP_CONNECTION_INFO check (#15411)
Otherwise, the check even works with such typo, but this fixes the
TCP_CONNECTION_INFO check on macOS machines for FPM.
2024-08-14 20:05:18 +02:00
Christoph M. Becker
25afbdb09e
GetSystemTimePreciseAsFileTime() is now always available (GH-15400)
* GetSystemTimePreciseAsFileTime() is now always available

As of PHP 8.3.0, we require Windows Server 2012 or Windows 8 as bare
minimum.  Since GetSystemTimePreciseAsFileTime() is always available on
these Windows versions[1], there is no more need for the workaround
described in dllmain.c; we just can call the function directly.

[1] <https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getsystemtimepreciseasfiletime>
2024-08-14 20:00:27 +02:00
Christoph M. Becker
390088bf55
Remove detection of unsupported Windows versions (GH-15399)
Windows 2008 and Vista are no longer supported as of PHP 7.2.0, and
Windows 2008 R2 and Windows 7 are no longer supported as of PHP 8.3.0.
Therefore we remove the respective detection code, and assert that
these versions can no longer be used.
2024-08-14 19:52:47 +02:00
jrfnl
d2810f5757 [skip ci] 8.4 | UPGRADING: add missing constant
Ref: 564914ac1a (diff-c5961ea04ab805b0059964fac68d6e159095a4b56aaaded0b1b941b8768c0f52)
2024-08-14 16:57:23 +02:00
jrfnl
ddaeb203b2 [skip ci] 8.4 | UPGRADING: fix incorrect function names
Ref: 1cf8291c85 (diff-d22d5ad00ee9f000cb8c8f9a5cfb905a8de91e7dc4a633896e2c5ab4ad1513d1)
2024-08-14 16:57:23 +02:00