mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Merge branch 'PHP-8.0' into PHP-8.1
This commit is contained in:
6
NEWS
6
NEWS
@@ -72,6 +72,10 @@ PHP NEWS
|
||||
- Intl:
|
||||
. Fix memory leak in MessageFormatter::format() on failure. (Girgias)
|
||||
|
||||
- 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 GH-11300 (license issue: restricted unicode license headers).
|
||||
(nielsdos)
|
||||
@@ -100,6 +104,8 @@ PHP NEWS
|
||||
|
||||
- Phar:
|
||||
. Add missing check on EVP_VerifyUpdate() in phar util. (nielsdos)
|
||||
. Fixed bug GHSA-jqcx-ccgc-xwhv (Buffer mismanagement in phar_dir_read()).
|
||||
(CVE-2023-3824) (nielsdos)
|
||||
|
||||
- PHPDBG:
|
||||
. Fixed bug GH-9669 (phpdbg -h options doesn't list the -z option). (adsr)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "Zend/Optimizer/zend_optimizer.h"
|
||||
#include "test_arginfo.h"
|
||||
|
||||
#ifdef HAVE_LIBXML
|
||||
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
|
||||
# include <libxml/globals.h>
|
||||
# include <libxml/parser.h>
|
||||
#endif
|
||||
@@ -271,6 +271,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();
|
||||
@@ -282,6 +283,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)
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace {
|
||||
|
||||
function zend_test_crash(?string $message = null): void {}
|
||||
|
||||
#ifdef HAVE_LIBXML
|
||||
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
|
||||
function zend_test_override_libxml_global_state(): void {}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_crash, 0, 0, IS_VOID,
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, message, IS_STRING, 1, "null")
|
||||
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
|
||||
@@ -153,7 +153,7 @@ static ZEND_FUNCTION(zend_get_current_func_name);
|
||||
static ZEND_FUNCTION(zend_call_method);
|
||||
static ZEND_FUNCTION(zend_get_map_ptr_last);
|
||||
static ZEND_FUNCTION(zend_test_crash);
|
||||
#if defined(HAVE_LIBXML)
|
||||
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
|
||||
static ZEND_FUNCTION(zend_test_override_libxml_global_state);
|
||||
#endif
|
||||
static ZEND_FUNCTION(namespaced_func);
|
||||
@@ -196,7 +196,7 @@ static const zend_function_entry ext_functions[] = {
|
||||
ZEND_FE(zend_call_method, arginfo_zend_call_method)
|
||||
ZEND_FE(zend_get_map_ptr_last, arginfo_zend_get_map_ptr_last)
|
||||
ZEND_FE(zend_test_crash, arginfo_zend_test_crash)
|
||||
#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_NS_FE("ZendTestNS2\\ZendSubNS", namespaced_func, arginfo_ZendTestNS2_ZendSubNS_namespaced_func)
|
||||
|
||||
Reference in New Issue
Block a user