mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
Fixed bug#46811 ini_set() doesn't return false on failure
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
--TEST--
|
||||
ini_set() function
|
||||
--INI--
|
||||
arg_separator.output=&
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(ini_set("arg_separator.output", ""));
|
||||
var_dump(ini_get("arg_separator.output"));
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
string(1) "&"
|
||||
|
||||
@@ -291,6 +291,7 @@ ZEND_API int zend_alter_ini_entry_ex(char *name, uint name_length, char *new_val
|
||||
ini_entry->value_length = new_value_length;
|
||||
} else {
|
||||
efree(duplicate);
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user