mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
replaced / in filename with DIRECTORY_SEPARATOR according to performance warning on DOMDocument::load man page
This commit is contained in:
parent
03399721f4
commit
f661b10536
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ if (!extension_loaded('dom')) die('skip dom extension not available');
|
||||||
<?php
|
<?php
|
||||||
libxml_use_internal_errors(true);
|
libxml_use_internal_errors(true);
|
||||||
$doc = new DomDocument();
|
$doc = new DomDocument();
|
||||||
$doc->load(__DIR__ . '/bug69753.xml');
|
$doc->load(__DIR__ . DIRECTORY_SEPARATOR . 'bug69753.xml');
|
||||||
$error = libxml_get_last_error();
|
$error = libxml_get_last_error();
|
||||||
var_dump($error->file);
|
var_dump($error->file);
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue