Skip to content

Commit 2ac82ac

Browse files
committed
Spaces in system temp folder path cause deprecation errors in php 8
1 parent 0c38f36 commit 2ac82ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ private function shouldEnableEntityLoader(): bool
676676
});
677677
$schema = '<?xml version="1.0" encoding="utf-8"?>
678678
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
679-
<xsd:include schemaLocation="file:///'.str_replace('\\', '/', $tmpfile).'" />
679+
<xsd:include schemaLocation="file:///'.rawurlencode(str_replace('\\', '/', $tmpfile)).'" />
680680
</xsd:schema>';
681681
file_put_contents($tmpfile, '<?xml version="1.0" encoding="utf-8"?>
682682
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

0 commit comments

Comments
 (0)