Skip to content

Commit

Permalink
Fix default values for mb_str*pos()
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel authored Jun 20, 2017
1 parent ec87f3e commit c14cca5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mbstring/mbstring.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function mb_strlen ($str, $encoding = null) {}
* @since 4.0.6
* @since 5.0
*/
function mb_strpos ($haystack, $needle, $offset = null, $encoding = null) {}
function mb_strpos ($haystack, $needle, $offset = 0, $encoding = null) {}

/**
* Find position of last occurrence of a string in a string
Expand All @@ -298,7 +298,7 @@ function mb_strpos ($haystack, $needle, $offset = null, $encoding = null) {}
* @since 4.0.6
* @since 5.0
*/
function mb_strrpos ($haystack, $needle, $offset = null, $encoding = null) {}
function mb_strrpos ($haystack, $needle, $offset = 0, $encoding = null) {}

/**
* Finds position of first occurrence of a string within another, case insensitive
Expand All @@ -323,7 +323,7 @@ function mb_strrpos ($haystack, $needle, $offset = null, $encoding = null) {}
* string, or false if needle is not found.
* @since 5.2.0
*/
function mb_stripos ($haystack, $needle, $offset = null, $encoding = null) {}
function mb_stripos ($haystack, $needle, $offset = 0, $encoding = null) {}

/**
* Finds position of last occurrence of a string within another, case insensitive
Expand All @@ -349,7 +349,7 @@ function mb_stripos ($haystack, $needle, $offset = null, $encoding = null) {}
* if needle is not found.
* @since 5.2.0
*/
function mb_strripos ($haystack, $needle, $offset = null, $encoding = null) {}
function mb_strripos ($haystack, $needle, $offset = 0, $encoding = null) {}

/**
* Finds first occurrence of a string within another
Expand Down

0 comments on commit c14cca5

Please sign in to comment.