mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.2'
This commit is contained in:
8
NEWS
8
NEWS
@@ -15,6 +15,10 @@ PHP NEWS
|
||||
- FFI:
|
||||
. Fix leaking definitions when using FFI::cdef()->new(...). (ilutov)
|
||||
|
||||
- Libxml:
|
||||
. Fixed bug GHSA-3qrf-m4j2-pcrr (Security issue with external entity loading
|
||||
in XML without enabling it). (CVE-2023-3823) (nielsdos, ilutov)
|
||||
|
||||
- MBString:
|
||||
. Fix use-after-free of mb_list_encodings() return value. (ilutov)
|
||||
|
||||
@@ -22,6 +26,10 @@ PHP NEWS
|
||||
. Avoid adding an unnecessary read-lock when loading script from shm if
|
||||
restart is in progress. (mikhainin)
|
||||
|
||||
- Phar:
|
||||
. Fixed bug GHSA-jqcx-ccgc-xwhv (Buffer mismanagement in phar_dir_read()).
|
||||
(CVE-2023-3824) (nielsdos)
|
||||
|
||||
- Streams:
|
||||
. Fixed bug GH-11735 (Use-after-free when unregistering user stream wrapper
|
||||
from itself). (ilutov)
|
||||
|
||||
@@ -5,6 +5,7 @@ GHSA-3qrf-m4j2-pcrr (libxml global state entity loader bypass)
|
||||
if (!extension_loaded('libxml')) die('skip libxml extension not available');
|
||||
if (!extension_loaded('dom')) die('skip dom extension not available');
|
||||
if (!extension_loaded('zend-test')) die('skip zend-test extension not available');
|
||||
if (!function_exists('zend_test_override_libxml_global_state')) die('skip not for Windows');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
@@ -5,6 +5,7 @@ GHSA-3qrf-m4j2-pcrr (libxml global state entity loader bypass)
|
||||
if (!extension_loaded('libxml')) die('skip libxml extension not available');
|
||||
if (!extension_loaded('simplexml')) die('skip simplexml extension not available');
|
||||
if (!extension_loaded('zend-test')) die('skip zend-test extension not available');
|
||||
if (!function_exists('zend_test_override_libxml_global_state')) die('skip not for Windows');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
@@ -5,6 +5,7 @@ GHSA-3qrf-m4j2-pcrr (libxml global state entity loader bypass)
|
||||
if (!extension_loaded('libxml')) die('skip libxml extension not available');
|
||||
if (!extension_loaded('xmlreader')) die('skip xmlreader extension not available');
|
||||
if (!extension_loaded('zend-test')) die('skip zend-test extension not available');
|
||||
if (!function_exists('zend_test_override_libxml_global_state')) die('skip not for Windows');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "zend_call_stack.h"
|
||||
#include "zend_exceptions.h"
|
||||
|
||||
#ifdef HAVE_LIBXML
|
||||
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
|
||||
# include <libxml/globals.h>
|
||||
# include <libxml/parser.h>
|
||||
#endif
|
||||
@@ -358,6 +358,7 @@ static ZEND_FUNCTION(zend_get_current_func_name)
|
||||
RETURN_STR(function_name);
|
||||
}
|
||||
|
||||
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
|
||||
static ZEND_FUNCTION(zend_test_override_libxml_global_state)
|
||||
{
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
@@ -369,6 +370,7 @@ static ZEND_FUNCTION(zend_test_override_libxml_global_state)
|
||||
(void) xmlLineNumbersDefault(1);
|
||||
(void) xmlKeepBlanksDefault(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* TESTS Z_PARAM_ITERABLE and Z_PARAM_ITERABLE_OR_NULL */
|
||||
static ZEND_FUNCTION(zend_iterable)
|
||||
|
||||
@@ -227,8 +227,8 @@ namespace {
|
||||
|
||||
function get_open_basedir(): ?string {}
|
||||
|
||||
#ifdef HAVE_LIBXML
|
||||
function zend_test_override_libxml_global_state(): void {}
|
||||
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
|
||||
function zend_test_override_libxml_global_state(): void {}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
6
ext/zend_test/test_arginfo.h
generated
6
ext/zend_test/test_arginfo.h
generated
@@ -139,7 +139,7 @@ ZEND_END_ARG_INFO()
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ZendTestNS2_namespaced_func, 0, 0, _IS_BOOL, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
#if defined(HAVE_LIBXML)
|
||||
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_override_libxml_global_state, 0, 0, IS_VOID, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
#endif
|
||||
@@ -267,7 +267,7 @@ static ZEND_FUNCTION(ZendTestNS2_namespaced_func);
|
||||
static ZEND_FUNCTION(ZendTestNS2_namespaced_deprecated_func);
|
||||
static ZEND_FUNCTION(ZendTestNS2_ZendSubNS_namespaced_func);
|
||||
static ZEND_FUNCTION(ZendTestNS2_ZendSubNS_namespaced_deprecated_func);
|
||||
#if defined(HAVE_LIBXML)
|
||||
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
|
||||
static ZEND_FUNCTION(zend_test_override_libxml_global_state);
|
||||
#endif
|
||||
static ZEND_METHOD(_ZendTestClass, is_object);
|
||||
@@ -343,7 +343,7 @@ static const zend_function_entry ext_functions[] = {
|
||||
ZEND_NS_DEP_FALIAS("ZendTestNS2\\ZendSubNS", namespaced_deprecated_func, ZendTestNS2_ZendSubNS_namespaced_deprecated_func, arginfo_ZendTestNS2_ZendSubNS_namespaced_deprecated_func)
|
||||
ZEND_NS_FALIAS("ZendTestNS2\\ZendSubNS", namespaced_aliased_func, zend_test_void_return, arginfo_ZendTestNS2_ZendSubNS_namespaced_aliased_func)
|
||||
ZEND_NS_DEP_FALIAS("ZendTestNS2\\ZendSubNS", namespaced_deprecated_aliased_func, zend_test_void_return, arginfo_ZendTestNS2_ZendSubNS_namespaced_deprecated_aliased_func)
|
||||
#if defined(HAVE_LIBXML)
|
||||
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
|
||||
ZEND_FE(zend_test_override_libxml_global_state, arginfo_zend_test_override_libxml_global_state)
|
||||
#endif
|
||||
ZEND_FE_END
|
||||
|
||||
Reference in New Issue
Block a user