|
@@ -199,7 +199,7 @@ discard block |
|
|
block discarded – undo |
|
199
|
199
|
|
|
200
|
200
|
$this->registerMediaTypeParser('application/xml', function ($input) { |
|
201
|
201
|
$backup = libxml_disable_entity_loader(true); |
|
202
|
|
- $backup_errors = libxml_use_internal_errors(TRUE); |
|
|
202
|
+ $backup_errors = libxml_use_internal_errors(true); |
|
203
|
203
|
$result = simplexml_load_string($input); |
|
204
|
204
|
libxml_disable_entity_loader($backup); |
|
205
|
205
|
libxml_clear_errors(); |
|
@@ -212,7 +212,7 @@ discard block |
|
|
block discarded – undo |
|
212
|
212
|
|
|
213
|
213
|
$this->registerMediaTypeParser('text/xml', function ($input) { |
|
214
|
214
|
$backup = libxml_disable_entity_loader(true); |
|
215
|
|
- $backup_errors = libxml_use_internal_errors(TRUE); |
|
|
215
|
+ $backup_errors = libxml_use_internal_errors(true); |
|
216
|
216
|
$result = simplexml_load_string($input); |
|
217
|
217
|
libxml_disable_entity_loader($backup); |
|
218
|
218
|
libxml_clear_errors(); |
Please login to merge, or discard this patch.