Skip to content

Commit e0f592a

Browse files
committed
Merge branch 'allow-readonly-hooks' of github.com:NickSdot/php-php-src into allow-readonly-hooks
chore: merge
2 parents 541f0a1 + 2dedad8 commit e0f592a

File tree

7 files changed

+29
-21
lines changed

7 files changed

+29
-21
lines changed

UPGRADING

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ PHP 8.5 UPGRADE NOTES
4242
have run and the output handlers have been cleaned up.
4343
This is a consequence of fixing GH-18033.
4444
. Traits are now bound before the parent class. This is a subtle behavioral
45-
change, but should closer match user expectations, demonstrated by GH-15753
46-
and GH-16198.
45+
change, but should more closely match user expectations, demonstrated by
46+
GH-15753 and GH-16198.
4747

4848
- FileInfo:
4949
. finfo_file() and finfo::file() now throws a ValueError instead of a
@@ -91,7 +91,7 @@ PHP 8.5 UPGRADE NOTES
9191
argument when fetching into an object, will now throw an Error.
9292
. The value of the constants PDO::FETCH_GROUP, PDO::FETCH_UNIQUE,
9393
PDO::FETCH_CLASSTYPE, PDO::FETCH_PROPS_LATE, and PDO::FETCH_SERIALIZE
94-
has changed.
94+
have changed.
9595
. A ValueError is now thrown if PDO::FETCH_PROPS_LATE is used with a fetch
9696
mode different than PDO::FETCH_CLASS, consistent with other fetch flags.
9797
. A ValueError is now thrown if PDO::FETCH_INTO is used as a fetch mode in
@@ -160,7 +160,7 @@ PHP 8.5 UPGRADE NOTES
160160
CURLINFO_USED_PROXY gets zero set if no proxy was used in the
161161
previous transfer or a non-zero value if a proxy was used.
162162
CURLINFO_HTTPAUTH_USED and CURLINFO_PROXYAUTH_USED get bitmasks
163-
indicating the http and proxy authentication methods that were
163+
indicating the HTTP and proxy authentication methods that were
164164
used in the previous request. See CURLAUTH_* constants for
165165
possible values.
166166
. Added CURLOPT_INFILESIZE_LARGE Curl option, which is a safe
@@ -170,10 +170,10 @@ PHP 8.5 UPGRADE NOTES
170170
accepts the largest integer value the system can handle.
171171
. Added CURLFOLLOW_OBEYCODE, CURLFOLLOW_FIRSTONLY and CURLFOLLOW_ALL values for
172172
CURLOPT_FOLLOWLOCATION curl_easy_setopt option.
173-
CURLFOLLOW_OBEYCODE to follow more strictly in regard of redirect
173+
CURLFOLLOW_OBEYCODE to follow more strictly in regard to redirect
174174
if they are allowed. CURLFOLLOW_FIRSTONLY to follow only the
175-
first redirect thus if there any follow up redirect, it won't go
176-
any further. CURLFOLLOW_ALL is equivalent to set CURLOPT_FOLLOWLOCATION
175+
first redirect thus if there is any follow up redirect, it won't go
176+
any further. CURLFOLLOW_ALL is equivalent to setting CURLOPT_FOLLOWLOCATION
177177
to true.
178178

179179
- DOM:
@@ -189,7 +189,7 @@ PHP 8.5 UPGRADE NOTES
189189
number formats.
190190
. Added Locale::addLikelySubtags and Locale::minimizeSubtags to
191191
handle likely tags on a given locale.
192-
. Added IntlListFormatter class to format, order, punctuates
192+
. Added IntlListFormatter class to format, order, and punctuate
193193
a list of items with a given locale, IntlListFormatter::TYPE_AND,
194194
IntlListFormatter::TYPE_OR, IntlListFormatter::TYPE_UNITS operands and
195195
IntlListFormatter::WIDTH_WIDE, IntlListFormatter::WIDTH_SHORT and
@@ -249,7 +249,7 @@ PHP 8.5 UPGRADE NOTES
249249
was actually never possible.
250250

251251
- LDAP:
252-
. ldap_get_option() now accept a NULL connection, as ldap_set_option(),
252+
. ldap_get_option() now accepts a NULL connection, as ldap_set_option(),
253253
to allow retrieval of global options.
254254

255255
- libxml:
@@ -262,7 +262,7 @@ PHP 8.5 UPGRADE NOTES
262262
. PDO::pgsqlCopyFromArray also supports inputs as Iterable.
263263
. Pdo\Pgsql::setAttribute and Pdo\Pgsql::prepare supports
264264
PDO::ATTR_PREFETCH sets to 0 which set to lazy fetch mode.
265-
In this mode, statements cannot be run parallely.
265+
In this mode, statements cannot be run in parallel.
266266

267267
- PDO_SQLITE:
268268
. SQLite PDO::quote() will now throw an exception or emit a warning,
@@ -289,7 +289,7 @@ PHP 8.5 UPGRADE NOTES
289289
are enum cases rather than normal class constants.
290290

291291
- Session:
292-
. session_start is stricter in regard of the option argument.
292+
. session_start is stricter in regard to the option argument.
293293
It throws a ValueError if the whole is not a hashmap or
294294
a TypeError if read_on_close value is not a valid type
295295
compatible with int.
@@ -306,7 +306,7 @@ PHP 8.5 UPGRADE NOTES
306306
ValueError if the port is lower than 0 or greater than 65535,
307307
also if any of the hints array entry is indexes numerically.
308308
. socket_addrinfo_lookup throws a TypeError if any of the hints
309-
values cannot be cast to a int and can throw a ValueError if
309+
values cannot be cast to int and can throw a ValueError if
310310
any of these values overflow.
311311
. socket_set_option with MCAST_LEAVE_GROUP/MCAST_LEAVE_SOURCE_GROUP
312312
options will throw an exception if the value isn't a valid object

UPGRADING.INTERNALS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ PHP 8.5 INTERNALS UPGRADE NOTES
4646
without duplicate build rules. It is up to the SAPI maintainers to ensure
4747
that appropriate build rules are created.
4848

49+
- Linux build system changes
50+
. libdir is properly set when --libdir (ex: /usr/lib64) and --with-libdir (ex lib64)
51+
configure options are used to ${libdir}/php (ex: /usr/lib64/php)
52+
4953
========================
5054
3. Module changes
5155
========================

Zend/tests/parameter_default_values/internal_declaration_error_const.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ class MyDateTimeZone extends DateTimeZone
1010
}
1111
?>
1212
--EXPECTF--
13-
Fatal error: Declaration of MyDateTimeZone::getTransitions(): array|false must be compatible with DateTimeZone::getTransitions(int $timestampBegin = PHP_INT_MIN, int $timestampEnd = PHP_INT_MAX): array|false in %s on line %d
13+
Fatal error: Declaration of MyDateTimeZone::getTransitions(): array|false must be compatible with DateTimeZone::getTransitions(int $timestampBegin = PHP_INT_MIN, int $timestampEnd = 2147483647): array|false in %s on line %d

configure.ac

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,11 +1324,15 @@ AS_VAR_IF([program_prefix], [NONE], [program_prefix=])
13241324
AS_VAR_IF([program_suffix], [NONE], [program_suffix=])
13251325

13261326
orig_libdir=$libdir
1327+
1328+
dnl First for unexpanded (default), second for expanded (from options)
13271329
AS_CASE([$libdir],
1328-
['${exec_prefix}/lib'], [libdir=$libdir/php])
1330+
['${exec_prefix}/lib'], [libdir=$libdir/php],
1331+
[${exec_prefix}/${PHP_LIBDIR}], [libdir=$libdir/php])
13291332

13301333
AS_CASE([$(eval echo $datadir)],
1331-
['${prefix}/share'], [datadir=$datadir/php])
1334+
['${prefix}/share'], [datadir=$datadir/php],
1335+
[${prefix}/share], [datadir=$datadir/php])
13321336

13331337
phptempdir=$(pwd)/libs
13341338

ext/date/php_date.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function timezone_offset_get(DateTimeZone $object, DateTimeInterface $datetime):
227227
* @refcount 1
228228
*/
229229
function timezone_transitions_get(
230-
DateTimeZone $object, int $timestampBegin = PHP_INT_MIN, int $timestampEnd = PHP_INT_MAX): array|false {}
230+
DateTimeZone $object, int $timestampBegin = PHP_INT_MIN, int $timestampEnd = 2147483647): array|false {}
231231

232232
/**
233233
* @return array<string, float|string>|false
@@ -615,7 +615,7 @@ public function getOffset(DateTimeInterface $datetime): int {}
615615
* @tentative-return-type
616616
* @alias timezone_transitions_get
617617
*/
618-
public function getTransitions(int $timestampBegin = PHP_INT_MIN, int $timestampEnd = PHP_INT_MAX): array|false {}
618+
public function getTransitions(int $timestampBegin = PHP_INT_MIN, int $timestampEnd = 2147483647): array|false {}
619619

620620
/**
621621
* @return array<string, float|string>|false

ext/date/php_date_arginfo.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/reflection/tests/internal_parameter_default_value/ReflectionParameter_getDefaultValueConstantName_Internal.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ NULL
4747
NULL
4848
----------
4949
string(11) "PHP_INT_MIN"
50-
string(11) "PHP_INT_MAX"
50+
NULL
5151
----------
5252
string(17) "DateTimeZone::ALL"
5353
NULL

0 commit comments

Comments
 (0)