replaced / in filename with DIRECTORY_SEPARATOR according to performance warning on DOMDocument::load man page

This commit is contained in:
Christoph M. Becker 2015-06-04 00:32:28 +02:00 committed by Anatol Belski
parent 03399721f4
commit f661b10536

View File

@ -11,7 +11,7 @@ if (!extension_loaded('dom')) die('skip dom extension not available');
<?php
libxml_use_internal_errors(true);
$doc = new DomDocument();
$doc->load(__DIR__ . '/bug69753.xml');
$doc->load(__DIR__ . DIRECTORY_SEPARATOR . 'bug69753.xml');
$error = libxml_get_last_error();
var_dump($error->file);
?>