|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2010-12-20 09:32 UTC] jani@php.net
 
-Package: Feature/Change Request
+Package: mbstring related
  [2013-03-19 13:07 UTC] neggelandia at gmail dot com
  [2013-06-09 20:37 UTC] andre at koethur dot de
  [2021-01-28 18:56 UTC] cmb@php.net
 
-Status:      Open
+Status:      Wont fix
-Assigned To:
+Assigned To: cmb
  [2021-01-28 18:56 UTC] cmb@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 04:00:01 2025 UTC | 
Description: ------------ I'm using the mbstring_funcoverload property defined to 7 which allows the overload of every functions. While using the function substr_count with the 3 parameter (offset) defined. As overloading is activated, calling substr_count is equivalent to calling mb_substr_count but the offset parameter does not exists for this function Reproduce code: --------------- In php.ini: mbstring.func_overload 7 $var = substr_count('/some/path', DIRECTORY_SEPARATOR, 0); Expected result: ---------------- 1 Actual result: -------------- Warning: mb_substr_count(): Unknown encoding "0" in php shell code on line 1 Call Stack: 6.0376 46516 1. {main}() php shell code:0 6.0376 46648 2. mb_substr_count() php shell code:1