[PHP-DEV] Use of "empty character constant?"

2006-07-08 Thread Matt W
Hi all, I'm a C newbie and just started experimenting with the PHP internals a couple weeks ago... A few days ago I noticed assignment/comparison of char variables to '' (nothing between single quotes) in, for example, the is_numeric_string function (zend_operators.h), snprintf.c, spprintf.c, etc

Re: [PHP-DEV] Use of "empty character constant?"

2006-07-08 Thread Pierre
On 7/8/06, Matt W <[EMAIL PROTECTED]> wrote: Hi all, I'm a C newbie and just started experimenting with the PHP internals a couple weeks ago... A few days ago I noticed assignment/comparison of char variables to '' (nothing between single quotes) in, for example, the is_numeric_string function

Re: [PHP-DEV] Use of "empty character constant?"

2006-07-08 Thread Matt W
Hi Pierre, Thanks for the reply, but where does that page talk about an EMPTY character constant? I pretty much understand character handling otherwise. :-) Thanks, Matt - Original Message - From: "Pierre" Subject: Re: [PHP-DEV] Use of "empty character constant?" > On 7/8/06, Matt

Re: [PHP-DEV] Use of "empty character constant?"

2006-07-08 Thread Pierre
On 7/8/06, Matt W <[EMAIL PROTECTED]> wrote: Hi Pierre, Thanks for the reply, but where does that page talk about an EMPTY character constant? I pretty much understand character handling otherwise. :-) Then I do not understand your question. Do you have the exact error/warning/notice? And som

[PHP-DEV] Re: Use of "empty character constant?"

2006-07-08 Thread Michael Wallner
Matt W wrote: Hi all, I'm a C newbie and just started experimenting with the PHP internals a couple weeks ago... A few days ago I noticed assignment/comparison of char variables to '' (nothing between single quotes) in, for example, the is_numeric_string function (zend_operators.h), snprintf.c,

Re: [PHP-DEV] Use of "empty character constant?"

2006-07-08 Thread Matt W
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]=='

Re: [PHP-DEV] Use of "empty character constant?"

2006-07-08 Thread 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

Re: [PHP-DEV] Use of "empty character constant?"

2006-07-08 Thread Matt W
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 thoug

Re: [PHP-DEV] Use of "empty character constant?"

2006-07-08 Thread Matt W
Hi Antony, - Original Message - From: "Antony Dovgal" > On 08.07.2006 15:10, Matt W wrote: > > Hi Antony, > > > > - Original Message - > > From: "Antony Dovgal" > >> > >> '0' became '' ? > >> Why would _character_ 0 become nothing? > > > > I don't know; was wondering the same t

Re: [PHP-DEV] Use of "empty character constant?"

2006-07-08 Thread Antony Dovgal
On 08.07.2006 15:10, Matt W wrote: 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 thou

[PHP-DEV] CVS Account Request: dsp

2006-07-08 Thread David Soria Parra
I was asked by Pierre to help him with IT/ITx development. allready got an pear account (accname: dsp). So I need an cvs account for the itx directory. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] CVS Account Request: dsp

2006-07-08 Thread Pierre
On 7/8/06, David Soria Parra <[EMAIL PROTECTED]> wrote: I was asked by Pierre to help him with IT/ITx development. allready got an pear account (accname: dsp). So I need an cvs account for the itx directory. Confirmed. I will give him the right karma, as soon as someone has created the accoun

RE: [PHP-DEV] FW: Help needed in benchmarking memory patch

2006-07-08 Thread Andi Gutmans
Anyone who'd like to try benchmark this, please drop me an email. We can also discuss how best to test. Thx. Andi > -Original Message- > From: Andi Gutmans [mailto:[EMAIL PROTECTED] > Sent: Friday, July 07, 2006 8:38 PM > To: internals@lists.php.net > Subject: [PHP-DEV] FW: Help needed