Re: Use of "empty character constant?"

From: Date: Sat, 08 Jul 2006 11:02:43 +0000
Subject: Re: Use of "empty character constant?"
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-24297@lists.php.net to get a copy of this message
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? -- Wbr, Antony Dovgal

« previous php.internals (#24297) next »