Edit report at http://bugs.php.net/bug.php?id=43840&edit=1

 ID:                 43840
 Comment by:         khasanovruslan86 at googlemail dot com
 Reported by:        [email protected]
 Summary:            mb_strpos bounds check is byte count rather than a
                     character count
 Status:             Closed
 Type:               Bug
 Package:            mbstring related
 Operating System:   Windows XP
 PHP Version:        5.2CVS-2008-01-14 (snap)
 Assigned To:        hirokawa
 Block user comment: N
 Private report:     N

 New Comment:

Deleaker ( http://deleaker.com/ ) is much better than BoundsCheacker


Previous Comments:
------------------------------------------------------------------------
[2008-02-26 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------
[2008-02-18 14:15:14] [email protected]

I've run the above example on the latest 5.2 and 5.3 snapshots and it's
behaving as I expected now. Thanks for making the change!

------------------------------------------------------------------------
[2008-02-16 08:58:15] [email protected]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.3-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.3-win32-installer-latest.msi



------------------------------------------------------------------------
[2008-02-12 09:50:04] [email protected]

Here is the entire mbstring section of my php.ini file, I haven't
changed it from the default that comes when you download PHP.

[mbstring]

; language for internal character representation.

;mbstring.language = Japanese



; internal/script encoding.

; Some encoding cannot work as internal encoding.

; (e.g. SJIS, BIG5, ISO-2022-*)

;mbstring.internal_encoding = EUC-JP



; http input encoding.

;mbstring.http_input = auto



; http output encoding. mb_output_handler must be

; registered as output buffer to function

;mbstring.http_output = SJIS



; enable automatic encoding translation according to

; mbstring.internal_encoding setting. Input chars are

; converted to internal encoding by setting this to On.

; Note: Do _not_ use automatic encoding translation for

;       portable libs/applications.

;mbstring.encoding_translation = Off



; automatic encoding detection order.

; auto means

;mbstring.detect_order = auto



; substitute_character used when character cannot be converted

; one from another

;mbstring.substitute_character = none;



; overload(replace) single byte functions by mbstring functions.

; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),

; etc. Possible values are 0,1,2,4 or combination of them.

; For example, 7 for overload everything.

; 0: No overload

; 1: Overload mail() function

; 2: Overload str*() functions

; 4: Overload ereg*() functions

;mbstring.func_overload = 0



Thanks

------------------------------------------------------------------------
[2008-02-10 00:30:07] [email protected]

Could you show me the mbstring related setting (mbstring.*)

in your php.ini ?



------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=43840


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=43840&edit=1

Reply via email to