Re: Use of "empty character constant?"
| From: | Matt W | Date: | Sat, 08 Jul 2006 11:10:31 +0000 |
| Subject: | Re: Use of "empty character constant?" | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-24298@lists.php.net to get a copy of this message | ||
Hi Antony,
----- Original Message -----
From: "Antony Dovgal"
> On 08.07.2006 14:48, Matt W wrote:
> > Hi Pierre,
> >
> > :-O I was just going to give you an example from zend_operators.h,
> > is_numeric_string() and guess what? It's the "correct" way that I
thought
> > it should be! I thought PHP 6 changed something, to where
> >
> > /* handle hex numbers */
> > if (length>=2 && str[0]=='0' && (str[1]=='x' ||
> > str[1]=='X')) {
> > conv_base=16;
> > }
> >
> > which is easy to understand :-) became
> >
> > if (length>=2 && str[0]=='' && (str[1]=='x' ||
> > str[1]=='X')) {
> > conv_base=16;
> > }
>
> '0' became '' ?
> Why would _character_ 0 become nothing?
I don't know; was wondering the same thing. :-) But, that is what I saw on
http://lxr.php.net :-(
Matt