Procházet zdrojové kódy

Fix ZF-12307: stream_resolve_include_path is only available from PHP 5.3.2 or higher

git-svn-id: http://framework.zend.com/svn/framework/standard/branches/release-1.12@25007 44c647ce-9c0f-0410-b52a-842ac1e357ba
rob před 13 roky
rodič
revize
df2e7bed2a
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      library/Zend/Loader/StandardAutoloader.php

+ 2 - 2
library/Zend/Loader/StandardAutoloader.php

@@ -313,8 +313,8 @@ class Zend_Loader_StandardAutoloader implements Zend_Loader_SplAutoloader
         // Fallback autoloading
         // Fallback autoloading
         if ($type === self::ACT_AS_FALLBACK) {
         if ($type === self::ACT_AS_FALLBACK) {
             // create filename
             // create filename
-            $filename     = $this->transformClassNameToFilename($class, '');
-            if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
+            $filename = $this->transformClassNameToFilename($class, '');
+            if (version_compare(PHP_VERSION, '5.3.2', '>=')) {
                 $resolvedName = stream_resolve_include_path($filename);
                 $resolvedName = stream_resolve_include_path($filename);
                 if ($resolvedName !== false) {
                 if ($resolvedName !== false) {
                     return include $resolvedName;
                     return include $resolvedName;