mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.1' into PHP-8.2
This commit is contained in:
commit
7ecb284926
7 changed files with 16 additions and 5 deletions
6
NEWS
6
NEWS
|
@ -76,6 +76,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)
|
||||
|
@ -101,6 +105,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
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "test.h"
|
||||
#include "test_arginfo.h"
|
||||
|
||||
#ifdef HAVE_LIBXML
|
||||
#if defined(HAVE_LIBXML) && !defined(PHP_WIN32)
|
||||
# include <libxml/globals.h>
|
||||
# include <libxml/parser.h>
|
||||
#endif
|
||||
|
@ -311,6 +311,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();
|
||||
|
@ -322,6 +323,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)
|
||||
|
|
|
@ -171,7 +171,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
|
||||
}
|
||||
|
|
6
ext/zend_test/test_arginfo.h
generated
6
ext/zend_test/test_arginfo.h
generated
|
@ -107,7 +107,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
|
||||
|
@ -209,7 +209,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);
|
||||
|
@ -269,7 +269,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue