1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3'

* PHP-8.3:
  Fix possible NULL dereference (crash on Zend/tests/arginfo_zpp_mismatch.phpt)
This commit is contained in:
Dmitry Stogov
2023-10-23 10:24:15 +03:00

View File

@@ -647,7 +647,11 @@ static ZEND_FUNCTION(zend_test_fill_packed_array)
static ZEND_FUNCTION(get_open_basedir)
{
ZEND_PARSE_PARAMETERS_NONE();
RETURN_STRING(PG(open_basedir));
if (PG(open_basedir)) {
RETURN_STRING(PG(open_basedir));
} else {
RETURN_NULL();
}
}
static zend_object *zend_test_class_new(zend_class_entry *class_type)