Re: Use of "empty character constant?"
| From: | Antony Dovgal | Date: | Sat, 08 Jul 2006 11:17:38 +0000 |
| Subject: | Re: Use of "empty character constant?" | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-24300@lists.php.net to get a copy of this message | ||
On 08.07.2006 15:10, Matt W wrote:
Hi Antony, ----- Original Message ----- From: "Antony Dovgal"What do you mean "I saw on lxr"? I still don't understand a word.. -- Wbr, Antony DovgalOn 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 :-(