1
0
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:
Hannes Magnusson
2008-12-09 10:11:21 +00:00
parent 336cb15d69
commit a2f63f583b
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -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) "&"
+1
View File
@@ -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;