File tree Expand file tree Collapse file tree 2 files changed +2
-34
lines changed
Expand file tree Collapse file tree 2 files changed +2
-34
lines changed Original file line number Diff line number Diff line change @@ -97,15 +97,15 @@ public function __construct()
9797 }
9898 }
9999
100- $ file = PHP_CodeCoverage_Util:: fileExistsInIncludePath (
100+ $ file = stream_resolve_include_path (
101101 'SymfonyComponents/YAML/sfYaml.php '
102102 );
103103
104104 if ($ file ) {
105105 $ this ->addFileToBlacklist ($ file );
106106 }
107107
108- $ file = PHP_CodeCoverage_Util:: fileExistsInIncludePath (
108+ $ file = stream_resolve_include_path (
109109 'SymfonyComponents/YAML/sfYamlDumper.php '
110110 );
111111
Original file line number Diff line number Diff line change @@ -111,38 +111,6 @@ public static function crap($ccn, $coverage)
111111 );
112112 }
113113
114- /**
115- * Implementation of stream_resolve_include_path() in PHP
116- * for version before PHP 5.3.2.
117- *
118- * @param string $file
119- * @return mixed
120- * @author Mattis Stordalen Flister <mattis@xait.no>
121- * @since Method available since Release 1.1.0
122- */
123- public static function fileExistsInIncludePath ($ file )
124- {
125- if (function_exists ('stream_resolve_include_path ' )) {
126- return stream_resolve_include_path ($ file );
127- }
128-
129- if (file_exists ($ file )) {
130- return realpath ($ file );
131- }
132-
133- $ paths = explode (PATH_SEPARATOR , get_include_path ());
134-
135- foreach ($ paths as $ path ) {
136- $ fullpath = $ path . DIRECTORY_SEPARATOR . $ file ;
137-
138- if (file_exists ($ fullpath )) {
139- return realpath ($ fullpath );
140- }
141- }
142-
143- return FALSE ;
144- }
145-
146114 /**
147115 * @param string $directory
148116 * @return string
You can’t perform that action at this time.
0 commit comments