1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 01:18:19 +02:00
Commit Graph

135030 Commits

Author SHA1 Message Date
Niels Dossche 586adf964f Remove unimplemented, unreferenced function from php_xmlreader.c 2024-02-25 16:25:52 +01:00
Gina Peter Banyard 1256d745c6 Zend/tests/offsets: add tests for taking references (#13496) 2024-02-25 15:22:59 +00:00
Máté Kocsis e84acc0e43 Escape function names in optimizer function info 2024-02-25 16:09:50 +01:00
Máté Kocsis 7266e4fc6d Add forgotten UPGRADING note for doc comment handling related changes
[skip-ci]
2024-02-25 16:02:09 +01:00
Máté Kocsis f2e199e878 Implement "support doc comments for internal classes and functions" (#13266)
Fixes #13130
2024-02-25 08:41:31 +01:00
Máté Kocsis 4b405d8520 Display class constant and property doc comments via reflection (#13499) 2024-02-25 08:39:41 +01:00
Peter Kokot db6a567607 Remove duplicate libtool --silent option
The libtool --silent option for PHP build invocation is already set in
the configure.ac.
2024-02-25 07:24:36 +01:00
Niels Dossche a74da53fc4 Remove useless write to LIBXML(stream_context)
The value will always be overwritten.
2024-02-25 00:28:30 +01:00
Niels Dossche 30621b2ab4 Add test for overwriting an existing stream context using libxml_set_streams_context
This was previously untested and the branch was not covered according to
codecov.
2024-02-25 00:28:30 +01:00
Niels Dossche ad29afd4e8 Document xsl:keys handling better in ext/xsl 2024-02-24 21:31:01 +01:00
Peter Kokot ec778c0dd7 Use default HAVE_SIGSETJMP symbol description
When AC_DEFINE is called after some macro that has already defined the
symbol with description (help text), it can be called with two arguments
to make things easier.

[ci skip]
2024-02-24 20:46:34 +01:00
Peter Kokot 92dffb7efd Check posix_spawn_file_actions_addchdir_np with AC_CHECK_FUNCS
This simplifies the check and defines the symbol with description.
2024-02-24 19:13:59 +01:00
Ayesh Karunaratne 75ef03e742 CI: Remove ext/imap dependencies (#13484)
Now that ext/imap is unbundled, `libc-client-dev*` packages are no longer necessary.
2024-02-24 13:24:01 +01:00
Niels Dossche 25dbe5374a Add test with quoting multibyte GBK vs utf8mb4 in PDO 2024-02-23 23:52:24 +01:00
Jorg Sowa 9c4beac8d3 Remove inet_aton
This removes the deprecated inet_aton and its Windows implementation.
The inet_aton can be replaced with platform agnostic inet_pton.

Closes GH-13479
2024-02-23 23:16:43 +01:00
Peter Kokot 1feeadd0e2 Simplify times Autoconf check (#13464)
Similar simplification as e72f0c887b.
2024-02-23 21:27:18 +01:00
Peter Kokot bd365149f2 Find and link math library as needed with AC_SEARCH_LIBS (#13481)
On some systems (Haiku) the math library is part of the C library and it
doesn't need to be explicitly prepended to LIBS. The redundant HAVE_LIBM
symbol defined by the AC_CHECK_LIB has been removed.
2024-02-23 20:48:10 +01:00
Peter Kokot e9f8defd34 Find and link dl library as needed with AC_SEARCH_LIBS (#13482)
AC_SEARCH_LIBS can be used to check for dlopen and if dl library needs
to be prepended to LIBS. The dlsym is available with the same scope as
dlopen (if dlopen is present, also dlsym is). The redundant HAVE_DLOPEN
and HAVE_DLSYM symbols have been removed.
2024-02-23 20:44:06 +01:00
Niels Dossche 657167f17b Destroy xpath callbacks at the time when the reconstruction happens 2024-02-23 19:35:38 +01:00
Niels Dossche 01f1c60008 Cleanup xpath.c by merging some declarations and assignments 2024-02-23 19:35:38 +01:00
Niels Dossche 85217a044a Mark DOMXPath as uncloneable
This never resulted in a working XPath object anyway, as trying to query
or evaluate anything resulted in an "Invalid XPath context" error.
Supporting this is more trouble than it's worth, so just block the clone
operation.
2024-02-23 19:35:38 +01:00
Niels Dossche 9c2c0c3d02 Remove always-true check 2024-02-23 19:35:38 +01:00
Peter Kokot 171e3986b0 Remove nsl library check in sapi/fpm (#13478)
In sapi/fpm the inet_ntop is used instead of the deprecated inet_addr
and the required library, if needed, is linked from the configure.ac.
2024-02-22 23:50:03 +01:00
Niels Dossche 205c8b642c [ci skip] NEWS and UPGRADING for DOMXPath::quote()
See commit 2f9320c00f.
2024-02-22 20:32:33 +01:00
divinity76 2f9320c00f DOMXPath::quote(string $str): string (#13456)
Method to quote strings in XPath, similar to PDO::quote() / mysqli::real_escape_string.

Sample usage: $xp->query("//span[contains(text()," . $xp->quote($string) . ")]")

The algorithm is derived from Robert Rossney's research into XPath quoting published at https://stackoverflow.com/a/1352556/1067003
But using an improved implementation I wrote myself, originally for https://github.com/chrome-php/chrome/pull/575
2024-02-22 20:30:21 +01:00
Peter Kokot 9603199547 Remove HAVE_SYSCONF check (#13474)
The sysconf can be assumed to be present on current systems, when
checking for the _SC_CLK_TCK symbol.
2024-02-22 18:09:50 +01:00
Saki Takamachi d29951891a NEWS / UPGRADING 2024-02-23 01:12:34 +09:00
Saki Takamachi 703ead5a26 Extend the maximum precision round can handle by one digit
Closes #12222
2024-02-23 01:12:25 +09:00
Peter Kokot 3693ad2d93 Refactor union semun in ext/sysvsem (#13473)
The union semun is always defined in php-src code. Current systems
require user to define it manually as done in the ext/sysvsem/sysvsem.c.
The conditional checks for HAVE_SEMUN were unused. The PHP 3.0.12 AIX
bug bugs.php.net/2149 was fixed by the removal of __GNU_LIBRARY__ check,
so this now further simplifies the code. The Autoconf AC_CHECK_TYPES
checks if system by any chance has the union semun, and by default
defines the HAVE_UNION_SEMUN.
2024-02-22 15:48:12 +01:00
Peter Kokot f75143cc0a Remove unused symbol ZEND_FIBER_ASM (#13467)
The symbol ZEND_FIBER_ASM is not defined on Windows and not used around
the ecosystem.
2024-02-22 13:44:04 +01:00
David CARLIER 9a3a4b5ba2 ext/intl: IntlDateFormatter class removing redundant error message info. (#13465)
Also correcting new IntlChar class constants typos.
2024-02-21 23:23:09 +00:00
Dmitry Stogov b2b5b0101e Update IR
IR commit: 1164842ac28ba141c604c6fae8ec960f9aec369b
2024-02-22 00:24:20 +03:00
Dmitry Stogov 793ddc7c8a Update IR
IR commit: 0b557c0e4578cbfdbf8017f4adac335d795156dc
2024-02-21 23:36:52 +03:00
Peter Kokot 7b2c67ca98 Simplify setpflags Autoconf check (#13458)
Similar simplification as e72f0c887b.
2024-02-21 21:01:47 +01:00
Ayesh Karunaratne ec9ae1ec1b CI: Fix labeler.yml file to support actions/labeler@v5 (#13459) 2024-02-21 18:53:14 +01:00
Arnaud Le Blanc 5b501f28e5 Cleanup temp file 2024-02-21 17:58:48 +01:00
David Carlier 75c4a6fe33 [ci skip] NEWS typo 2024-02-21 16:32:27 +00:00
David Carlier 8bc34dd1bf [ci skip] NEWS/UPGRADING 2024-02-21 16:24:27 +00:00
David Carlier 037855fcd3 ext/intl: level up c++ runtime std for icu 74 and onwards.
to align with what is required to build icu 74 itself.

Close GH-13422.
2024-02-21 16:11:47 +00:00
David Carlier 211dc60044 ext/intl: adding new UCHAR_IDS_UNARY_OPERATOR/UCHAR_ID_COMPAT_MATH_START/UCHAR_ID_COMPAT_MATH_CONTINUE.
Close GH-13420.
2024-02-21 16:11:09 +00:00
David Carlier 22a3866f0c ext/intl: Timezone::getIanaID method addition.
returns the primary IANA zone ID from the provided timezone ID.
Most of the time, timezone ID==IANA ID.
available from icu >= 74.

Close GH-13419.
2024-02-21 16:09:22 +00:00
Appla ef61ed10c2 Remove redundant getpid function call (#13454) 2024-02-21 15:33:15 +01:00
Ilija Tovilo 1bef861527 Add vscode chapter to docs
Closes GH-13441
2024-02-21 14:42:08 +01:00
Ayesh Karunaratne 7ed26c01f5 GitHub Actions: Update action versions to avoid node:16 warnings (#13453)
Note 16 is now EOL, so old GitHub Actions that use node 16 now triggers a warning.

This updates all existing workflows except `dwieeb/needs-reply` to their latest versions.
2024-02-21 13:16:25 +01:00
Peter Kokot e72f0c887b Simplify prctl and procctl Autoconf checks (#13450)
The AC_CHECK_FUNCS checks whether the linker sees the function in the
usual libraries, in this case libc. This is a simple trick to also check
existence of belonging headers, since the code uses HAVE_PRCTL and
HAVE_PROCCTL to include headers and call functions.
2024-02-21 09:04:37 +01:00
Ayesh Karunaratne ba0f9fb501 ext/curl: Add feature_info assoc array to curl_version() (#13439)
The `phpinfo()` section of the Curl extension lists individual features
supported by the particular ext-Curl + libcurl build. However, the
`curl_version()` function return values do not indicate the same level of
details.

`curl_version()` has a `protocols` key that returns an array of all protocols
supported by the build. But the `features` key is a bitmask of all the features.
Checking the availability of certain feature requires knowing the corresponding
`CURL_VERSION` constant, and checking the availability of the constant and a
bitmask check for it in the `features` value.

For example, to determine HTTP2 support, it requires evaluating:

```php
defined('CURL_VERSION_HTTP2') && (curl_version()['features'] & CURL_VERSION_HTTP2 === CURL_VERSION_HTTP2)
```

To make feature availability checks more intuitive, this adds a new
`feature_list` key to `curl_version()` output array.

With it, checking for individual features availability is easier, and does
not require inspecting the availability of the `CURL_VERSION` constant and
the `features` key.

```php
!empty(curl_version()['feature_list']['HTTP2']);
```
2024-02-21 00:46:22 +00:00
Jorg Adam Sowa e630aacf79 Remove HAVE_INET_PTON (#13410) 2024-02-21 00:43:56 +00:00
Dmitry Stogov f5efaa39fa Update IR
IR commit: 873f13dd933acc38ba4cfe2a4aa8558867992a7e
2024-02-21 01:48:38 +03:00
Dmitry Stogov 23aac16d13 Update IR
IR commit: 67477a78251aafe35515eb7a339e309a0e0d4919
2024-02-21 01:13:31 +03:00
Niels Dossche 6c735739f1 Merge branch 'PHP-8.3'
* PHP-8.3:
  Workaround ZTS persistent resource crashes (PHP 8.3 and lower)
2024-02-20 21:26:39 +01:00