Req #55241 [Com]: return proper FALSE value when mb_substr parameters are not computable

From: Date: Wed, 20 Jul 2011 09:11:36 +0000
Subject: Req #55241 [Com]: return proper FALSE value when mb_substr parameters are not computable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-162031@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55241&edit=1

 ID:                 55241
 Comment by:         lonnyk at gmail dot com
 Reported by:        netmosfera at gmail dot com
 Summary:            return proper FALSE value when mb_substr parameters
                     are not computable
 Status:             Open
 Type:               Feature/Change Request
 Package:            mbstring related
 Operating System:   any
 PHP Version:        5.4.0alpha2
 Block user comment: N
 Private report:     N

 New Comment:

This was taken care of in https://bugs.php.net/bug.php?id=28899

If you turn on mbstring.func_overload mb_substr will return false. Otherwise it 
returns ""


Previous Comments:
------------------------------------------------------------------------
[2011-07-19 11:59:10] netmosfera at gmail dot com

Description:
------------
hi, it is possible to make mb_substr work exactly like substr?

substr("",0,10) // returns false
mb_substr("",0,10) // returns ""

substr("abc",7,1) // returns false
mb_substr("abc",7,1) // returns ""

thank you



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



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


Thread (5 messages)

« previous php.bugs (#162031) next »