Re: [PHP-DEV] is_numeric_string causes function inconsistency

2006-08-12 Thread Pierre
Hello, On 8/12/06, Matt W [EMAIL PROTECTED] wrote: Hi Pierre, I will reply to the rest of your message later. Just wanted to quickly point out another thing I found with is_numeric_string() when the allow_errors param==0 (which is_numeric() PHP function uses) and there is *trailing*

Re: [PHP-DEV] is_numeric_string causes function inconsistency

2006-08-12 Thread Richard Lynch
[Apologies for having accidentally responded to Matt W off-list, and now bringing it back on-list without asking...] On Sat, August 12, 2006 2:50 am, Matt W wrote: From: Richard Lynch Sent: Friday, August 11, 2006 Leading whitespace in PHP means that it's not a number, it's a string, and

Re: [PHP-DEV] is_numeric_string causes function inconsistency

2006-08-12 Thread Pierre
Hello, On 8/12/06, Richard Lynch [EMAIL PROTECTED] wrote: But I think you are talking about making changes to the way this works: http://example.com/?foo=%20.123 ?php $foo = $_GET['foo']; if (is_numeric($foo)){ //error out } $query = something involving '$foo'; ? If you break that, you're

RE: FW: [PHP-DEV] Long awaited line directive

2006-08-12 Thread Richard Lynch
On Fri, August 11, 2006 5:24 pm, Zeev Suraski wrote: At 22:15 11/08/2006, Richard Lynch wrote: On Fri, August 11, 2006 4:30 am, Zeev Suraski wrote: The solution I propose is to create internal functions that will set 'virtual' filenames and line ranges, that will be saved in some sort of

Re: [PHP-DEV] is_numeric_string causes function inconsistency

2006-08-12 Thread Richard Lynch
On Sat, August 12, 2006 2:19 pm, Pierre wrote: On 8/12/06, Richard Lynch [EMAIL PROTECTED] wrote: But I think you are talking about making changes to the way this works: http://example.com/?foo=%20.123 ?php $foo = $_GET['foo']; if (is_numeric($foo)){ //error out } $query = something

Re: [PHP-DEV] is_numeric_string causes function inconsistency

2006-08-12 Thread Pierre
Hello, This example has nothing to do with what we are discussing here. There is no conversion or detection involved here. It is a simple string concatenation. And yet, the way Matt W was talking at one point, it seemed he wanted to change that as well... Or perhaps I misunderstood. I

[PHP-DEV] Chicago PHP Conference

2006-08-12 Thread Richard Lynch
[Apologies if you already saw this on PHP-General, but I really need input from the heavy hitters here on internals... :-)] It may have started as a joke on PHP-General, but this just isn't funny anymore. I'm in the pre-planning phase of organizing a PHP Conference in Chicago. Due to Chicago