Re: [PHP-DEV] Why 5.2 should not be delayed for E_DEPRECATED

2006-10-23 Thread Zeev Suraski
Ilia, I think Wez's suggestion is the most practical one. Let's make sure we haven't introduced any fatal errors into 5.2 (and demote them to E_STRICT for now), and handle the rest of the suggestions afterwards. Zeev At 02:33 24/10/2006, Ilia Alshanetsky wrote: I've been reading people's r

Re: [PHP-DEV] [RFC] E_DEPRECATED

2006-10-23 Thread Zeev Suraski
At 21:08 23/10/2006, Marcus Boerger wrote: Hello internals, after recent discussions (over the last three months)I finally made up my mind over E_STRICT, deprecation warnings and OOP messages/rules. My idea proposal is to do the following: - Add a new severity E_DEPRECATED - severities are u

Re: [PHP-DEV] Why 5.2 should not be delayed for E_DEPRECATED

2006-10-23 Thread Lester Caine
Ilia Alshanetsky wrote: I've been reading people's replies to Marcus' RFC in regard to E_DEPRECATED and it seems that some people have expressed the want to delay 5.2 until mucking around with error handling is done one way or another. My simple answer to this is no. SIMPLE QUESTION - I've ju

Re: [PHP-DEV] [RFC] E_DEPRECATED

2006-10-23 Thread Wez Furlong
On 10/23/06, Marcus Boerger <[EMAIL PROTECTED]> wrote: . E_DEPRECATED: Some language featre that is likely to go away. s/likely/confirmed/. We can't speculatively deprecate a feature and then change our minds. (The {} vs [] thing with strings comes to mind). I don't think we need to set

[PHP-DEV] Why 5.2 should not be delayed for E_DEPRECATED

2006-10-23 Thread Ilia Alshanetsky
I've been reading people's replies to Marcus' RFC in regard to E_DEPRECATED and it seems that some people have expressed the want to delay 5.2 until mucking around with error handling is done one way or another. My simple answer to this is no. The long answer is as follows. PHP 5.2.0 is no

Re: [PHP-DEV] [RFC] E_DEPRECATED

2006-10-23 Thread Sebastian Bergmann
Marcus Boerger wrote: > - Add a new severity E_DEPRECATED +1 > - severities are used as follows: > . E_DEPRECATED: Some language featre that is likely to go away. Eearlierst > removal would be two minor versions or one major version later. That is > something that gets deprecated in 5.

Re: [PHP-DEV] PHP 5.2.0 release with "broken" input filters

2006-10-23 Thread Rasmus Lerdorf
Peter Brodersen wrote: On Mon, 23 Oct 2006 10:38:31 -0700, in php.internals [EMAIL PROTECTED] (Rasmus Lerdorf) wrote: I had left out SERVER filtering in the initial version for much the same reasoning, but it turns out that a good chunk of holes were due to the fact that people used $_SERVER['

Re: [PHP-DEV] PHP 5.2.0 release with "broken" input filters

2006-10-23 Thread Peter Brodersen
On Mon, 23 Oct 2006 10:38:31 -0700, in php.internals [EMAIL PROTECTED] (Rasmus Lerdorf) wrote: >I had left out SERVER filtering in the initial version for much the same >reasoning, but it turns out that a good chunk of holes were due to the >fact that people used $_SERVER['REQUEST_URI'] unfilter

Re: [PHP-DEV] [RFC] E_STRICT/E_DEPRECATED

2006-10-23 Thread Todd Ruth
I'm not a voter, but I'd like to lobby for a fancier E_STRICT... E_STRICT is sounding more and more like runtime "lint". I very much miss lint. (I'm sure it's still around, but I've been programming in only php for the last few years.) A key feature of lint that made it usable was that you could

Re: [PHP-DEV] [RFC] E_DEPRECATED

2006-10-23 Thread Edin Kadribasic
Derick Rethans wrote: >> . E_STRICT any rule that reflects common strict standards, like OOP theory >> that is considered harmless if not followed. For example the combination >> 'abstract static' makes no sense in said theory but doesn't put our zend >> engine in an unstable state. >

Re: [PHP-DEV] [RFC] E_DEPRECATED

2006-10-23 Thread Edin Kadribasic
Marcus Boerger wrote: > Hello internals, > > after recent discussions (over the last three months)I finally made up my > mind over E_STRICT, deprecation warnings and OOP messages/rules. My idea > proposal is to do the following: > > - Add a new severity E_DEPRECATED > > - severities are used a

Re: [PHP-DEV] RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_compile.c

2006-10-23 Thread Ilia Alshanetsky
On 23-Oct-06, at 4:16 PM, Richard Lynch wrote: Some ISPs will be quicker to upgrade LAMP than to let users build SSH tunnels. If your ISP does not give you SSH, perhaps it is time to find yourself another ISP. Ilia Alshanetsky -- PHP Internals - PHP Runtime Development Mailing List To un

Re: [PHP-DEV] RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_compile.c

2006-10-23 Thread Richard Lynch
On Fri, October 20, 2006 9:26 am, Ilia Alshanetsky wrote: > > On 20-Oct-06, at 10:24 AM, Lukas Kahwe Smith wrote: > >> Ilia Alshanetsky wrote: >> its funny that ext/mysql is supposed to stay around for BC reasons even in PHP6, yet it has known unsolvable security issues. >>> Such as? >> >

Re: [PHP-DEV] RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_compile.c

2006-10-23 Thread Richard Lynch
On Fri, October 20, 2006 9:35 am, Ilia Alshanetsky wrote: > > On 20-Oct-06, at 10:29 AM, Edin Kadribasic wrote: >> "Known OO conventions" -> how Java people do it >> "Its supposed to work that way" -> it works like that in Java >> ... > > Java is just a single OO language out of many, http:// > en.

Re: [PHP-DEV] PHP 5.2.0 release with "broken" input filters

2006-10-23 Thread Richard Lynch
On Mon, October 23, 2006 12:38 pm, Rasmus Lerdorf wrote: > I had left out SERVER filtering in the initial version for much the > same > reasoning, but it turns out that a good chunk of holes were due to the > fact that people used $_SERVER['REQUEST_URI'] unfiltered. Trying to > teach people which

Re: [PHP-DEV] [RFC] E_DEPRECATED

2006-10-23 Thread Alan Milnes
Marcus Boerger wrote: Hello internals, after recent discussions (over the last three months)I finally made up my mind over E_STRICT, deprecation warnings and OOP messages/rules. My idea proposal is to do the following: +1 to them all. Alan -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] [RFC] E_DEPRECATED

2006-10-23 Thread Richard Lynch
On Mon, October 23, 2006 2:08 pm, Marcus Boerger wrote: > Hello internals, +1, ditto on only major version for E_DEPRECATED to disappear I'd go either way on E_ALL changing -- but would think that the Right Thing is to leave it alone in 5.2, but make it mean *ALL* (even E_STRICT) in 6.0 -- Some

Re: [PHP-DEV] [RFC] E_DEPRECATED

2006-10-23 Thread Ilia Alshanetsky
On 23-Oct-06, at 3:08 PM, Marcus Boerger wrote: - Add a new severity E_DEPRECATED - severities are used as follows: . E_DEPRECATED: Some language featre that is likely to go away. Eearlierst removal would be two minor versions or one major version later. That is something that ge

Re: [PHP-DEV] Re: [RFC] E_DEPRECATED

2006-10-23 Thread Robert Cummings
On Mon, 2006-10-23 at 21:29 +0200, Pierre wrote: > On Mon, 23 Oct 2006 21:08:57 +0200 > [EMAIL PROTECTED] (Marcus Boerger) wrote: > > > Hello internals, > > > > after recent discussions (over the last three months)I finally made > > up my mind over E_STRICT, deprecation warnings and OOP > > mes

Re: [PHP-DEV] [RFC] E_DEPRECATED

2006-10-23 Thread Derick Rethans
On Mon, 23 Oct 2006, Marcus Boerger wrote: > after recent discussions (over the last three months)I finally made up my > mind over E_STRICT, deprecation warnings and OOP messages/rules. My idea > proposal is to do the following: > > - Add a new severity E_DEPRECATED +1 > - severities are used

[PHP-DEV] Re: [RFC] E_DEPRECATED

2006-10-23 Thread Pierre
On Mon, 23 Oct 2006 21:08:57 +0200 [EMAIL PROTECTED] (Marcus Boerger) wrote: > Hello internals, > > after recent discussions (over the last three months)I finally made > up my mind over E_STRICT, deprecation warnings and OOP > messages/rules. My idea proposal is to do the following: > > - Add

Re: [PHP-DEV] [RFC] E_DEPRECATED

2006-10-23 Thread Steph Fox
Hi Marcus, +1 to everything here if it counts, but please can you simplify the role of E_DEPRECATED by making it 'next major version only'? I can see all kinds of problems with leaving that open to debate. - Steph Hello internals, after recent discussions (over the last three months)I fi

[PHP-DEV] [RFC] E_DEPRECATED

2006-10-23 Thread Marcus Boerger
Hello internals, after recent discussions (over the last three months)I finally made up my mind over E_STRICT, deprecation warnings and OOP messages/rules. My idea proposal is to do the following: - Add a new severity E_DEPRECATED - severities are used as follows: . E_DEPRECATED: Some langua

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Pierre
Hello, On 10/23/06, Marcus Boerger <[EMAIL PROTECTED]> wrote: Hello Pierre, shouldn't we use E_NOTICE here? obviously there is something wrongwith those calls That's where our opinions differ. There is nothing wrong with these calls and it is a documented behavior. If you take a look at my

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Marcus Boerger
Hello Pierre, shouldn't we use E_NOTICE here? obviously there is something wrongwith those calls and other functions that check their input typically raise them as E_NOTICE or E_WARNING. In this case I personally would prefer E_NOTICE and think E_STRICT is wrong. If we had E_DEPRECATED we could

[PHP-DEV] CVS Account Request: kundu

2006-10-23 Thread Adam Banko
publishing dbobj 0.8 at PECL more on dbobj: http://beeblex.com/lists/index.php/php.pecl.dev/3457?s=l%3Aphp.pecl.dev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Pierre
Hello, On 10/23/06, Derick Rethans <[EMAIL PROTECTED]> wrote: gmmktime() without parameters is broken in PHP 4 anyway. If you don't give it arguments than it should default to the current date and hour (in GMT for gmmktime() and in localtime for mktime()). In both places this should result in t

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Derick Rethans
On Mon, 23 Oct 2006, Pierre wrote: > Hello, > > On 10/23/06, Derick Rethans <[EMAIL PROTECTED]> wrote: > > On Mon, 23 Oct 2006, Lukas Kahwe Smith wrote: > > > > > > > Yes, I see no point in pushing this responsibility into the userland, > > > > > especially since its a BC break appearently. > > >

Re: [PHP-DEV] PHP 5.2.0 release with "broken" input filters

2006-10-23 Thread Rasmus Lerdorf
Ilia Alshanetsky wrote: On 23-Oct-06, at 4:48 AM, Stefan Esser wrote: Hi, I just wanted to remind you that PHP 5.2.0 will be released with broken and inconsistent input filtering. Right now _SERVER is only passed through the input filter for apache 1 SAPI. All other SAPIs do not pass _SERVER

Re: [PHP-DEV] PHP 5.2.0 release with "broken" input filters

2006-10-23 Thread Pierre
Hello, On 10/23/06, Pierre <[EMAIL PROTECTED]> wrote: Hello, On 10/23/06, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: > > On 23-Oct-06, at 4:48 AM, Stefan Esser wrote: > > > Hi, > > > > I just wanted to remind you that PHP 5.2.0 will be released with > > broken > > and inconsistent input filter

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Pierre
Hello, On 10/23/06, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: Unilateral break? lol... Actually it is no break at all, take PHP4 code move it to PHP and you won't even see the warning because E_STRICT is not even shown by default. Anyway, I made my point, my patch prooves that this change i

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Lukas Kahwe Smith
Ilia Alshanetsky wrote: Actually it is no break at all, take PHP4 code move it to PHP and you won't even see the warning because E_STRICT is not even shown by default. haha regards, Lukas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Ilia Alshanetsky
Unilateral break? lol... Actually it is no break at all, take PHP4 code move it to PHP and you won't even see the warning because E_STRICT is not even shown by default. On 23-Oct-06, at 11:26 AM, Pierre wrote: Hello, On 10/23/06, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: On 23-Oct-0

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Pierre
Hello, On 10/23/06, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: On 23-Oct-06, at 6:41 AM, Pierre wrote: > If you read the other replies to your initial question (which was > wrong :), you will realize another thing, this is easily fixable with > minimum effort and impact: > > http://pecl.php.ne

Re: [PHP-DEV] PHP 5.2.0 release with "broken" input filters

2006-10-23 Thread Pierre
Hello, On 10/23/06, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: On 23-Oct-06, at 4:48 AM, Stefan Esser wrote: > Hi, > > I just wanted to remind you that PHP 5.2.0 will be released with > broken > and inconsistent input filtering. > > Right now _SERVER is only passed through the input filter fo

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Ilia Alshanetsky
On 23-Oct-06, at 6:41 AM, Pierre wrote: If you read the other replies to your initial question (which was wrong :), you will realize another thing, this is easily fixable with minimum effort and impact: http://pecl.php.net/~pierre/remove_mktime_strict.txt No visible speed difference I see no

Re: [PHP-DEV] PHP 5.2.0 release with "broken" input filters

2006-10-23 Thread Ilia Alshanetsky
On 23-Oct-06, at 4:48 AM, Stefan Esser wrote: Hi, I just wanted to remind you that PHP 5.2.0 will be released with broken and inconsistent input filtering. Right now _SERVER is only passed through the input filter for apache 1 SAPI. All other SAPIs do not pass _SERVER variables through the

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Richard Quadling
On 23/10/06, Pierre <[EMAIL PROTECTED]> wrote: Hello, On 10/23/06, Richard Quadling <[EMAIL PROTECTED]> wrote: > On 23/10/06, Derick Rethans <[EMAIL PROTECTED]> wrote: > > On Mon, 23 Oct 2006, Lukas Kahwe Smith wrote: > > > > > > > Yes, I see no point in pushing this responsibility into the user

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Pierre
Hello, On 10/23/06, Derick Rethans <[EMAIL PROTECTED]> wrote: On Mon, 23 Oct 2006, Pierre wrote: > On 10/23/06, Derick Rethans <[EMAIL PROTECTED]> wrote: > > > Yeah, but there is no point in calling mktime() without arguments as you > > can use time() doing the same. It's just a friendly hint t

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Derick Rethans
On Mon, 23 Oct 2006, Pierre wrote: > On 10/23/06, Derick Rethans <[EMAIL PROTECTED]> wrote: > > > Yeah, but there is no point in calling mktime() without arguments as you > > can use time() doing the same. It's just a friendly hint that you're > > wasting CPU cycles. It's an E_STRICT message for

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Pierre
Hello, On 10/23/06, Derick Rethans <[EMAIL PROTECTED]> wrote: On Mon, 23 Oct 2006, Lukas Kahwe Smith wrote: > > > Yes, I see no point in pushing this responsibility into the userland, > > > especially since its a BC break appearently. > > > > There is no BC break: > > I meant, there would be a

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Richard Quadling
On 23/10/06, Derick Rethans <[EMAIL PROTECTED]> wrote: On Mon, 23 Oct 2006, Lukas Kahwe Smith wrote: > > > Yes, I see no point in pushing this responsibility into the userland, > > > especially since its a BC break appearently. > > > > There is no BC break: > > I meant, there would be a BC break

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Pierre
Hello, On 10/23/06, Richard Quadling <[EMAIL PROTECTED]> wrote: On 23/10/06, Derick Rethans <[EMAIL PROTECTED]> wrote: > On Mon, 23 Oct 2006, Lukas Kahwe Smith wrote: > > > > > Yes, I see no point in pushing this responsibility into the userland, > > > > especially since its a BC break appearent

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Pierre
Hello, On 10/23/06, Derick Rethans <[EMAIL PROTECTED]> wrote: Yeah, but there is no point in calling mktime() without arguments as you can use time() doing the same. It's just a friendly hint that you're wasting CPU cycles. It's an E_STRICT message for s sake. There is no point to keep th

Re: [PHP-DEV] PHP 5.2.0 release with "broken" input filters

2006-10-23 Thread Pierre
Hello Stefan, On 10/23/06, Stefan Esser <[EMAIL PROTECTED]> wrote: Hi, I just wanted to remind you that PHP 5.2.0 will be released with broken and inconsistent input filtering. Right now _SERVER is only passed through the input filter for apache 1 SAPI. All other SAPIs do not pass _SERVER vari

[PHP-DEV] PHP 5 Bug Summary Report

2006-10-23 Thread internals
PHP 5 Bug Database summary - http://bugs.php.net Num Status Summary (602 total including feature requests) ===[*Compile Issues]== 39197 Open How do I get shared library 'libphp5.so'? ===

[PHP-DEV] PHP 4 Bug Summary Report

2006-10-23 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (633 total including feature requests) ===[Apache related]=== 38670 Open Whole 4.4.x branch has problem with open_basedir option nested from Apache2

[PHP-DEV] PHP 5.2.0 release with "broken" input filters

2006-10-23 Thread Stefan Esser
Hi, I just wanted to remind you that PHP 5.2.0 will be released with broken and inconsistent input filtering. Right now _SERVER is only passed through the input filter for apache 1 SAPI. All other SAPIs do not pass _SERVER variables through the filter. This will be a major headache for people usi

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Derick Rethans
On Mon, 23 Oct 2006, Lukas Kahwe Smith wrote: > > > Yes, I see no point in pushing this responsibility into the userland, > > > especially since its a BC break appearently. > > > > There is no BC break: > > I meant, there would be a BC break if this feature gets dropped, which is the > point of

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Lukas Kahwe Smith
Derick Rethans wrote: On Mon, 23 Oct 2006, Lukas Kahwe Smith wrote: Pierre wrote: On 10/23/06, Pierre <[EMAIL PROTECTED]> wrote: Hello, On 10/23/06, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: Use of mktime(0) and alike is improper use of the function, more over generally it can be traced t

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Derick Rethans
On Mon, 23 Oct 2006, Lukas Kahwe Smith wrote: > Pierre wrote: > > On 10/23/06, Pierre <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > > > On 10/23/06, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: > > > > Use of mktime(0) and alike is improper use of the function, more over > > > > generally it can

Re: [PHP-DEV] Why is mktime(0,0,0,0,0,0) E_STRICT?

2006-10-23 Thread Lukas Kahwe Smith
Pierre wrote: On 10/23/06, Pierre <[EMAIL PROTECTED]> wrote: Hello, On 10/23/06, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: > Use of mktime(0) and alike is improper use of the function, more over > generally it can be traced to an undesired code behavior. Which is? mktime(0) is just like mkti