On Tue, 3 Sep 2002 08:51:27 +0200 (CEST)
[EMAIL PROTECTED] wrote:
> On Tue, 3 Sep 2002, James Cox wrote:
>
> > >
> > > No, this option is 'disabled' by default, and can be enabled by a
> > > ini variable.
> > >
> > > mbstring.encoding_translation = Off; is default.
> > >
> > > If mbstring.encoding_translation = On is set in php.ini,
> > > the transparent conversion will be enabled.
> > >
> > ok, but before, you had to --enable it before it'd work? or did it get built
> > _EVERY_ time regardless?
>
> Does it matter? ini settings are much easier to notice during debugging
> than #ifdefs, so I think Rui made an excellent choice here. However,
> some documentation of these settings would be useful (hint :).
Yes, I will add some documentation about new settings into PHP manual.
>
> >
> > [snip]
> > > Yes, I think mbstring is very fundamental feature and it should
> > > be built-in
> > > feature (in PHP 5.0).
> > > But, string related functions and some other core functions
> > > are included in ext/standard which is also in extension part.
> > >
> >
> > sure, ext/standard works... we just need to lose the duplication.
>
> You obviously have no idea what mbstring exactly does, as this comments
> makes little sense. mbstring _overloads_ functions which are in
> ext/standard (such as strpos() ). That is a little bit too much magic,
> and thus I like to see the mbstring functions merged into the
> ext/standard functions (for PHP 5).
I agree with you.
As you said, mbstring _overloads_ functions are a kind of durty hack,
and should be tempolary solution.
I hope that strpos() and some other string functions will be
multibyte enable by default in PHP 5.
strlen() overloaded by mb_strlen might causes some problems because it is used
to measure length of string and to measure length of binary data.
So, a new function to measure string length only (or binary length only)
will be necessary.
--
-----------------------------------------------------
Rui Hirokawa <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php