|
@@ -58,11 +58,10 @@ class XliffFileLoader implements LoaderInterface
|
|
|
|
|
|
$location = str_replace('\\', '/', __DIR__).'/schema/dic/xliff-core/xml.xsd';
|
|
|
$parts = explode('/', $location);
|
|
|
- if (preg_match('#^phar://#i', $location)) {
|
|
|
+ if (0 === stripos($location, 'phar://')) {
|
|
|
$tmpfile = tempnam(sys_get_temp_dir(), 'sf2');
|
|
|
if ($tmpfile) {
|
|
|
- file_put_contents($tmpfile, file_get_contents($location));
|
|
|
- $tmpfiles[] = $tmpfile;
|
|
|
+ copy($location, $tmpfile);
|
|
|
$parts = explode('/', str_replace('\\', '/', $tmpfile));
|
|
|
}
|
|
|
}
|