David CARLIER
1db75d42bb
ext/sockets: socket_get_option/socket_set_option SO_LINGER_SEC. ( #14858 )
...
9672cd9469
follow-up.
2024-07-07 14:23:01 +01:00
Niels Dossche
23391f1fe7
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-14550: No warning message when Zend DTrace is enabled that opcache.jit is implictly disabled
2024-07-07 13:18:42 +02:00
Niels Dossche
d3992b6d09
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-14550: No warning message when Zend DTrace is enabled that opcache.jit is implictly disabled
2024-07-07 13:18:35 +02:00
Niels Dossche
b44ad27a78
Fix GH-14550: No warning message when Zend DTrace is enabled that opcache.jit is implictly disabled
...
Closes GH-14847.
2024-07-07 13:18:01 +02:00
David Carlier
58b34fbfcc
[ci skip] UPGRADING fix for pcntl_waitid constants
2024-07-07 11:06:59 +01:00
Vladimir Vrzić
c2fd071db7
ext/pcntl: Added new function pcntl_waitid
...
to obtain status information pertaining termination, stop, and/or
continue events in one the caller's child processes.
close GH-14617
2024-07-07 11:04:14 +01:00
Peter Kokot
af29403ea0
Enable erase_empty_line in ext/readline ( #14526 )
...
This wasn't activated due to inconsistent availability over the
editline/readline versions and variants. This now checks whether the
rl_erase_empty_line variable is available in library headers and enables
it based on that. On Windows this is for now still disabled due to
wineditline library, which doesn't have this yet.
Documentation already mentions the erase_empty_line setting:
https://www.php.net/manual/en/function.readline-info.php
2024-07-07 04:36:25 +02:00
Peter Kokot
2ebef11e83
Update http links to https and sync www.php.net URLs ( #14854 )
2024-07-07 04:23:08 +02:00
Peter Kokot
42530c6543
Remove unused SMART_STR_PREALLOC ( #14848 )
2024-07-07 01:04:53 +02:00
Niels Dossche
f4af8f3837
Fix libxml test compatibility in xsl
2024-07-07 00:22:41 +02:00
Niels Dossche
477c2afb48
Fix typo in simplexml.c
2024-07-06 14:58:50 -07:00
Niels Dossche
acda7ed5c3
Stop using reserved names in simplexml
2024-07-06 14:58:50 -07:00
Niels Dossche
c6d0181c75
Fix narrowing warning
2024-07-06 14:58:42 -07:00
Niels Dossche
f16590637c
Stop using reserved name in php_xsl.h
2024-07-06 14:58:42 -07:00
Niels Dossche
ac4ed1cca6
Remove unused argument
2024-07-06 14:58:42 -07:00
Niels Dossche
0a1f1dd191
Place macro argument in parentheses
2024-07-06 14:58:42 -07:00
Niels Dossche
e2189beaca
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-14639: Member access within null pointer in ext/spl/spl_observer.c
2024-07-06 23:58:37 +02:00
Niels Dossche
8ea3f154be
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-14639: Member access within null pointer in ext/spl/spl_observer.c
2024-07-06 23:58:20 +02:00
Niels Dossche
0d4e0c013e
Fix GH-14639: Member access within null pointer in ext/spl/spl_observer.c
...
`spl_object_storage_attach_handle` creates an entry already, but only
fills it in at the end with `spl_object_storage_create_element` which
allocates memory. In this case the allocation fails and we're left with
a NULL slot. Doing the allocation first isn't an option because we want
to check whether the slot is occupied before allocating memory.
The simplest solution is to set the entry to NULL and check for a NULL
pointer upon destruction.
Closes GH-14849.
2024-07-06 23:57:46 +02:00
Niels Dossche
776939c3db
Avoid function pointer cast to preserve ability to do CFI
2024-07-06 13:49:45 -07:00
Niels Dossche
ff3e7679b1
Avoid pointless cast to prevent implementation-defined conversion warning
2024-07-06 13:49:45 -07:00
Niels Dossche
292e936ca8
Handle invalid values better in PHP_XML_OPTION_SKIP_TAGSTART
2024-07-06 13:49:45 -07:00
Niels Dossche
19358d638b
Stop using reserved names
2024-07-06 13:49:45 -07:00
Niels Dossche
335d6f023f
Fix grammar mistake in comment in xml.c
2024-07-06 13:49:45 -07:00
Niels Dossche
be2d9fd80e
Remove unused include from xml.c
2024-07-06 13:49:45 -07:00
Niels Dossche
ec1998987b
Remove pointless const specifier on scalar argument
2024-07-06 13:49:45 -07:00
Niels Dossche
2ab24b0a94
Remove unused arguments from _external_entity_ref_handler()
2024-07-06 13:49:45 -07:00
Jorg Adam Sowa
8e1561cdbe
Check session_create_id() input for null byte ( #14728 )
2024-07-06 21:18:35 +01:00
David Carlier
c14fa48526
Merge branch 'PHP-8.3'
2024-07-06 20:44:47 +01:00
David Carlier
0b28914a26
Merge branch 'PHP-8.2' into PHP-8.3
2024-07-06 20:44:20 +01:00
David Carlier
237518763f
Fix GH-14774 time_sleep_until overflow.
2024-07-06 20:43:59 +01:00
Niels Dossche
b41e90c6f9
Fix bug #81481 (xml_get_current_byte_index limited to 32-bit numbers on 64-bit builds) ( #14845 )
...
The return value is long in both expat and expat2 (with XML_LARGE_SIZE
not set).
2024-07-06 18:34:17 +02:00
Arnaud Le Blanc
ec19abf161
[ci skip] NEWS for GH-14801
2024-07-06 17:59:55 +02:00
Niels Dossche
f0441e05b8
Add LIBXML_NO_XXE constant ( #14844 )
...
This constant is available as of libxml2 2.13, and is used together with
LIBXML_NOENT to allow entity subsitution but disallow external entities.
2024-07-06 17:43:46 +02:00
Andy Postnikov
1f64e7c253
Fix build for armv7 ( #14801 )
2024-07-06 15:21:45 +02:00
Niels Dossche
b418d19c42
[ci skip] Make test more robust
2024-07-06 14:46:07 +02:00
Niels Dossche
fff206ba1e
Merge branch 'PHP-8.3'
...
* PHP-8.3:
[ci skip] Test is for libxml only
2024-07-06 14:42:05 +02:00
Niels Dossche
459d79db95
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
[ci skip] Test is for libxml only
2024-07-06 14:41:56 +02:00
Niels Dossche
0b6289dab8
[ci skip] Test is for libxml only
2024-07-06 14:41:44 +02:00
Niels Dossche
f98aa06c68
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-14834: Error installing PHP when --with-pear is used
2024-07-06 13:52:42 +02:00
Niels Dossche
9a337a85bf
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-14834: Error installing PHP when --with-pear is used
2024-07-06 13:52:34 +02:00
Niels Dossche
67259e451d
Fix GH-14834: Error installing PHP when --with-pear is used
...
libxml2 2.13 makes changes to how the parsing state is set, update our
code accordingly. In particular, it started reporting entities within
attributes, while it should only report entities inside text nodes.
Closes GH-14837.
2024-07-06 13:52:02 +02:00
Niels Dossche
b4384488bc
Merge branch 'PHP-8.3'
...
* PHP-8.3:
NEWS for compatibility in XML
Stop setting parse options directly
Stop relying on lastError directly
Stop relying on the sax2 flag directly
Port XML_GetCurrentByteIndex to public APIs
2024-07-06 13:50:32 +02:00
Niels Dossche
a1bcaf05b0
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
NEWS for compatibility in XML
Stop setting parse options directly
Stop relying on lastError directly
Stop relying on the sax2 flag directly
Port XML_GetCurrentByteIndex to public APIs
2024-07-06 13:50:23 +02:00
Niels Dossche
a66afbbe09
NEWS for compatibility in XML
...
Closes GH-14836.
2024-07-06 13:49:12 +02:00
Niels Dossche
e5e15fd229
Stop setting parse options directly
...
Setting this directly will be deprecated in libxml2 2.14.
2024-07-06 13:46:16 +02:00
Niels Dossche
823d0588f7
Stop relying on lastError directly
...
Reading this directly will become deprecated in libxml2 2.14.
2024-07-06 13:46:15 +02:00
Niels Dossche
6490a18271
Stop relying on the sax2 flag directly
...
Setting this directly will become deprecated in libxml2 2.14.
2024-07-06 13:46:15 +02:00
Niels Dossche
8dc799aac7
Port XML_GetCurrentByteIndex to public APIs
...
This is necessary to avoid a deprecation break in libxml2 2.14.x.
2024-07-06 13:46:15 +02:00
Niels Dossche
8c8322f6a1
ext/xml: Use zend_hash_find_ptr_lc() to avoid allocation in some cases ( #14840 )
2024-07-06 13:44:10 +02:00