فهرست منبع

[DependencyInjection] restricted supported for only phar URI

Fabien Potencier 14 سال پیش
والد
کامیت
b2a720f2b7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

+ 1 - 1
src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

@@ -285,7 +285,7 @@ class XmlFileLoader extends FileLoader
         $imports = '';
         foreach ($schemaLocations as $namespace => $location) {
             $parts = explode('/', $location);
-            if (preg_match('/^[a-z][a-z\d\+\.\-]*:/i', $location)) { // URI scheme http://tools.ietf.org/html/rfc3986
+            if (preg_match('#^phar://#i', $location)) {
                 $tmpfile = tempnam(sys_get_temp_dir(), 'sf2');
                 if ($tmpfile) {
                     file_put_contents($tmpfile, file_get_contents($location));