Fixed a crash in str_replace() that would happen if search parameter was an array and one of the replacements resulted in subject string being empty.
修正了一個str_replace()的隱患,在搜索參數是一個數組,條件字符串替換結果中的一個是空的時候發生。