summaryrefslogtreecommitdiff
path: root/includes/Fallback.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Fallback.php')
-rw-r--r--includes/Fallback.php27
1 files changed, 4 insertions, 23 deletions
diff --git a/includes/Fallback.php b/includes/Fallback.php
index 4b138c11..2e19a095 100644
--- a/includes/Fallback.php
+++ b/includes/Fallback.php
@@ -149,13 +149,12 @@ class Fallback {
return $total;
}
-
/**
* Fallback implementation of mb_strpos, hardcoded to UTF-8.
* @param $haystack String
* @param $needle String
- * @param $offset String: optional start position
- * @param $encoding String: optional encoding; ignored
+ * @param string $offset optional start position
+ * @param string $encoding optional encoding; ignored
* @return int
*/
public static function mb_strpos( $haystack, $needle, $offset = 0, $encoding = '' ) {
@@ -175,8 +174,8 @@ class Fallback {
* Fallback implementation of mb_strrpos, hardcoded to UTF-8.
* @param $haystack String
* @param $needle String
- * @param $offset String: optional start position
- * @param $encoding String: optional encoding; ignored
+ * @param string $offset optional start position
+ * @param string $encoding optional encoding; ignored
* @return int
*/
public static function mb_strrpos( $haystack, $needle, $offset = 0, $encoding = '' ) {
@@ -192,22 +191,4 @@ class Fallback {
return false;
}
}
-
- /**
- * Fallback implementation of stream_resolve_include_path()
- * Native stream_resolve_include_path is available for PHP 5 >= 5.3.2
- * @param $filename String
- * @return String
- */
- public static function stream_resolve_include_path( $filename ) {
- $pathArray = explode( PATH_SEPARATOR, get_include_path() );
- foreach ( $pathArray as $path ) {
- $fullFilename = $path . DIRECTORY_SEPARATOR . $filename;
- if ( file_exists( $fullFilename ) ) {
- return $fullFilename;
- }
- }
- return false;
- }
-
}