mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix possible NULL dereference (crash on Zend/tests/arginfo_zpp_mismatch.phpt)
This commit is contained in:
parent
e170b14277
commit
25cb2a40d6
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue