fix for ini_set

This commit is contained in:
Andy Miller
2018-12-07 13:04:35 -07:00
parent 501bc0133f
commit bf127fb0bd
2 changed files with 2 additions and 1 deletions

View File

@@ -24,6 +24,7 @@
* Fixed `Medium::relativePath()` for streams
* Fixed `Object` serialization breaking if overriding `jsonSerialize()` method
* Grav 1.6: Fixed `FlexObject::update()` call with partial object update
* Fixed `YamlFormatter::decode()` when calling `init_set()` with integer
# v1.6.0-beta.6
## 11/12/2018

View File

@@ -89,7 +89,7 @@ class YamlFormatter extends AbstractFormatter
if (\function_exists('yaml_parse') && $this->useNativeDecoder()) {
// Safely decode YAML.
$saved = @ini_get('yaml.decode_php');
@ini_set('yaml.decode_php', 0);
@ini_set('yaml.decode_php', '0');
$decoded = @yaml_parse($data);
@ini_set('yaml.decode_php', $saved);