Re: desperately looking for linux-64bits tester - Fw: [PEAR-DEV] run test on lastest PHP CVS snapshot on linux-64bit - Fw: Bug #42101 [Opn->Fbk]:
mb_substr error if length = PHP_INT_MAX
| From: | Chuck Burgess | Date: | Tue, 14 Aug 2007 03:09:55 +0000 |
| Subject: | Re: desperately looking for linux-64bits tester - Fw: [PEAR-DEV] run test on lastest PHP CVS snapshot on linux-64bit - Fw: Bug #42101 [Opn->Fbk]: mb_substr error if length = PHP_INT_MAX |
||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-47779@lists.php.net to get a copy of this message | ||
On 8/13/07, Michel Corne <mcorne@yahoo.com> wrote:
>
> Please! This will help PHP be even better :-)
> Instructions below. This is just a few minutes work.
> Thanks,
> MC
Okay, I might have solved it for myself... added "--enable-mbstring" to my
"./configure" step, but that's all... didn't add any other config options
nor did I create a php.ini.
My results:
$ ./php bug.php
Array
(
[string] => Ḋ
[utf8] => \x44\xCC\x87
[unicode] => \u0044\u0307
[PHP_INT_MAX] => 9223372036854775807
[php_int_max] => Array
(
[0] => D
[1] => Array
(
[chars] => 44
)
)
[9999] => Array
(
[0] => Ḋ
[1] => Array
(
[chars1] => 44
[chars2] => cc
[chars3] => 87
)
)
)
--
CRB
Let me introduce you to my very own DMCA-protected encryption key:
BC 1B 64 4A 8D DE 49 E8 C3 7D CC EE 1A AD EE F5
(compliments of Freedom-to-Tinker http://www.freedom-to-tinker.com/?p=1155)