# Flamewar Summary

- Thread: https://externals.io/message/23490
- Original archive: https://news-web.php.net/php.internals/23490
- Started by Ilia Alshanetsky on 2006-05-16T23:26:37+00:00
- Messages: 38
- Page 1 of 2: messages 1 to 25 (25 per page, add `?page=N` to the URL)
- Next page: https://externals.io/message/23490.md?page=2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #23531 — Steph Fox — 2006-05-16T12:01:36+00:00

URL: https://externals.io/message/23490#23531 · In reply to: #23490

> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 
> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

E_RECOVERABLE_ERROR's apparently going in anyway.
E_STRICT, I'd be all for including into `E_ALL` now if it weren't for the 
'semi-statics' issue (complex) and the distributed INI default settings 
(simple). If PEAR:isError() legal doesn't actually do the Engine any harm 
then it'd make sense to keep it, purely as a BC consideration, in which case 
it shouldn't really need an `E_STRICT` if the purpose of `E_STRICT` is to warn 
about future BC breaks. Outside that, I personally find `E_STRICT` useful - 
it's helped me diagnose mystery crashes before now - but it's really only 
useful if it isn't over-used as an error level.

So -1, and some rethinking needed about the way `E_STRICT` is used ('this is 
the way you should do it' vs 'this is the way you will have to do it in 
future')

> As far as statics, there are no BC reasons not to do it that I can  think 
> of, but it just seems wrong to me from a design perspective to  allow 
> dynamic creation of static object properties.

It seems very PHP-ish to me to allow it. +1.

- Steph

---

## #23538 — Steph Fox — 2006-05-16T13:08:33+00:00

URL: https://externals.io/message/23490#23538 · In reply to: #23531

> So -1, and some rethinking needed about the way `E_STRICT` is used ('this is 
> the way you should do it' vs 'this is the way you will have to do it in 
> future')

Going on from there - if `E_STRICT` is now being touted as 'deprecated stuff 
only', would it be a good idea to have something like E_DEVEL for 'advice' 
issues like vars, semi-statics, etc etc etc - which would of course _never_ 
become part of E_ALL? Or was that the original intention for E_NOTICE?

Just a thought.

- Steph

---

## #23490 — Ilia Alshanetsky — 2006-05-16T23:26:37+00:00

URL: https://externals.io/message/23490#23490

There are 2 PHP 5.2 changes there has been a lot of back and forth  
flaming going around and we need to finally come to a decision about.

The two topics are:

Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 
Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

So please throw in your +1/-1 so, that we can have a conclusion on  
these matters.

Personally, I am against both changes.

I think the error reporting level change is too major change for a  
minor release such as 5.2 and will cause problems for all the people  
who use things like `E_ALL` &~ `E_NOTICE` and will now
see `E_STRICT` messages that is not their intent to see, with the  
setting they are only anticipating warnings and errors. Given that  
most people don't bother to turn of displaying of errors, it could  
have an affect on quite a few applications, very few big PHP apps can  
run without generating any `E_STRICT` messages.

As far as statics, there are no BC reasons not to do it that I can  
think of, but it just seems wrong to me from a design perspective to  
allow dynamic creation of static object properties.

Ilia Alshanetsky
Advanced Internet Designs Inc.
ilia@prohost.org

P.S. Please stay on topic.

---

## #23492 — Edin Kadribasic — 2006-05-16T23:30:58+00:00

URL: https://externals.io/message/23490#23492 · In reply to: #23490

> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 
-1
> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;
+1

Edin

---

## #23493 — Darrell Brogdon — 2006-05-16T23:32:20+00:00

URL: https://externals.io/message/23490#23493 · In reply to: #23490

So, would that make it - non cents?

...sorry, couldn't resist

-D



> So please throw in your +1/-1


Darrell Brogdon
darrell@brogdon.net
http://darrell.brogdon.net
http://phpflashcards.com

---

## #23494 — Pierre — 2006-05-16T23:36:30+00:00

URL: https://externals.io/message/23490#23494 · In reply to: #23490

On Tue, 16 May 2006 19:26:37 -0400
ilia@prohost.org (Ilia Alshanetsky) wrote:

> There are 2 PHP 5.2 changes there has been a lot of back and forth  
> flaming going around and we need to finally come to a decision about.
> 
> The two topics are:
> 
> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 

-1.


> Addition of support for dynamic statics ala: class foo {} foo::$bar =
> 1;

+1


-- Pierre

---

## #23496 — Marcus Boerger — 2006-05-16T23:50:36+00:00

URL: https://externals.io/message/23490#23496 · In reply to: #23490

Hello Ilia,

Wednesday, May 17, 2006, 1:26:37 AM, you wrote:

> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 
+1

I gave my best on this. But be sure. I'll just ignore any whining on
any change that has a `E_STRICT` in older versions when doing changes
in any version after 5.2.

Also before you think removing `E_STRICT` solves everything; Well it
doesn't.

While doing all the stuff we wanted for 5.2 we also added
E_RECOVERABLE_ERROR. This includes stuff that was `E_ERROR` before
hand. And right now we didn't even start to systematically convert
all error modes in the extension directory as we started to do in
HEAD.

That said you most likely have to fix your error_reporting anyway or
just don't care at all since you use settings that just work yor you.

An argument i heared was that some applications that deal with
error_reporting might get into trouble with this. I have a solution to
that: we simply revert all the engine changes, or even better simply
rebranch 5.1.4 again and do not do any progress other than fixing bugs
and focusing on PHP 6.0.

> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;
-1

If we go that road i suggest we simply drop support for strict. Fixing
the issues we will run into is quite impossible and even if it were it
would lead to a slower php. A php that doesn't support strict at all
would on the other hand be quite a bit faster.

Best regards,
 Marcus

p.s: And no, i wouldn't take it personally if someone reverts all my
stuff as long as it is decided by the RM.

I would simply whine for the around 50 hours of unpaid work :-)

---

## #23497 — Marcus Boerger — 2006-05-16T23:56:19+00:00

URL: https://externals.io/message/23490#23497 · In reply to: #23496

Hello Ilia,

  second try of second part this time using static. I guess i need sleep.
  
Wednesday, May 17, 2006, 1:26:37 AM, you wrote:

> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;
-1

If we go that road i suggest we simply drop support for STATIC. Fixing
the issues we will run into is quite impossible and even if it were it
would lead to a slower php. A php that doesn't support STATIC at all
would on the other hand be quite a bit faster.

Best regards,
  Marcus

p.s: And no, i wouldn't take it personally if someone reverts all my
stuff as long as it is decided by the RM.

I would simply whine for the around 50 hours of unpaid work :-)

---

## #23498 — Ilia Alshanetsky — 2006-05-17T00:05:18+00:00

URL: https://externals.io/message/23490#23498 · In reply to: #23496

> Hello Ilia,
>
> Wednesday, May 17, 2006, 1:26:37 AM, you wrote:
>
> > […]
> +1
> While doing all the stuff we wanted for 5.2 we also added
> E_RECOVERABLE_ERROR. This includes stuff that was `E_ERROR` before
> hand. And right now we didn't even start to systematically convert
> all error modes in the extension directory as we started to do in
> HEAD.
>

This can stay as it does not impact on the operation of existing  
application and is actually required, otherwise previously fatal  
errors will be bypassed.

> That said you most likely have to fix your error_reporting anyway or
> just don't care at all since you use settings that just work yor you.
>

Even if you were to release a new version of software today in  
anticipation of a the 5.2 release few months down the road most of  
your users will still use old versions while their ISP may have  
already upgraded their PHP.


> An argument i heared was that some applications that deal with
> error_reporting might get into trouble with this. I have a solution to
> that: we simply revert all the engine changes, or even better simply
> rebranch 5.1.4 again and do not do any progress other than fixing bugs
> and focusing on PHP 6.0.

I don't think anyone is suggesting that we revert everything, but we  
do need to work on minimizing the impact of our changes on our users  
in minor releases.


Ilia Alshanetsky
Advanced Internet Designs Inc.
ilia@prohost.org

---

## #23499 — Alan Knowles — 2006-05-17T00:15:32+00:00

URL: https://externals.io/message/23490#23499 · In reply to: #23490

-1 on both here, `E_STRICT` can wait and dynamic static variables are 
pretty pointless, the workaround is clearer than the kludge..
StaticClass::$options['somekey'] = 'value';

Regards
Alan

Ilia Alshanetsky wrote:

> There are 2 PHP 5.2 changes there has been a lot of back and forth  
> flaming going around and we need to finally come to a decision about.
>
> The two topics are:
>
> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 
> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;
>
> So please throw in your +1/-1 so, that we can have a conclusion on  
> these matters.
>
> Personally, I am against both changes.
>
> I think the error reporting level change is too major change for a  
> minor release such as 5.2 and will cause problems for all the people  
> who use things like `E_ALL` &~ `E_NOTICE` and will now
> see `E_STRICT` messages that is not their intent to see, with the  
> setting they are only anticipating warnings and errors. Given that  
> most people don't bother to turn of displaying of errors, it could  
> have an affect on quite a few applications, very few big PHP apps can  
> run without generating any `E_STRICT` messages.
>
> As far as statics, there are no BC reasons not to do it that I can  
> think of, but it just seems wrong to me from a design perspective to  
> allow dynamic creation of static object properties.
>
> Ilia Alshanetsky
> Advanced Internet Designs Inc.
> ilia@prohost.org
>
> P.S. Please stay on topic.

---

## #23500 — Wez Furlong — 2006-05-17T00:47:25+00:00

URL: https://externals.io/message/23490#23500 · In reply to: #23490

> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 
-1

> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;
-1.

--Wez.

---

## #23501 — Derick Rethans — 2006-05-17T01:32:13+00:00

URL: https://externals.io/message/23490#23501 · In reply to: #23490

> There are 2 PHP 5.2 changes there has been a lot of back and forth flaming
> going around and we need to finally come to a decision about.
> 
> The two topics are:
> 
> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 

 `E_RECOVERABLE_ERROR` should definitely be there as it's a higher level 
than E_WARNING. +1 on adding that to E_ALL.

I don't care about E_STRICT, +0.5 on adding that to E_ALL,

> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

I myself don't see the use, but it isn't really bad either. +0.5 on it.

regards,
Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

---

## #23502 — Brian Moon — 2006-05-17T01:49:55+00:00

URL: https://externals.io/message/23490#23502 · In reply to: #23490

> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 

+1

> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

-1

-- 

Brian Moon
-------------
http://dealnews.com/
Its good to be cheap =)

---

## #23505 — Christian Stocker — 2006-05-17T05:54:48+00:00

URL: https://externals.io/message/23490#23505 · In reply to: #23490

> There are 2 PHP 5.2 changes there has been a lot of back and forth
> flaming going around and we need to finally come to a decision about.
> 
> The two topics are:
> 
> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 

-1, especially for including E_STRICT.

> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

Don't care that much, but looks like there are technical reasons for
better not doing that, so -1 here too.

chregu
> 
> So please throw in your +1/-1 so, that we can have a conclusion on these
> matters.
> 
> Personally, I am against both changes.
> 
> I think the error reporting level change is too major change for a minor
> release such as 5.2 and will cause problems for all the people who use
> things like `E_ALL` &~ `E_NOTICE` and will now
> see `E_STRICT` messages that is not their intent to see, with the setting
> they are only anticipating warnings and errors. Given that most people
> don't bother to turn of displaying of errors, it could have an affect on
> quite a few applications, very few big PHP apps can run without
> generating any `E_STRICT` messages.
> 
> As far as statics, there are no BC reasons not to do it that I can think
> of, but it just seems wrong to me from a design perspective to allow
> dynamic creation of static object properties.
> 
> Ilia Alshanetsky
> Advanced Internet Designs Inc.
> ilia@prohost.org
> 
> P.S. Please stay on topic.
> 
> --
> 

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | christian.stocker@bitflux.ch |  GPG 0x5CE1DECB

---

## #23506 — Rasmus Lerdorf — 2006-05-17T06:10:13+00:00

URL: https://externals.io/message/23490#23506 · In reply to: #23490

Ilia Alshanetsky wrote:
> There are 2 PHP 5.2 changes there has been a lot of back and forth 
> flaming going around and we need to finally come to a decision about.
> 
> The two topics are:
> 
> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 

I don't like `E_ALL` & ~E_NOTICE suddenly starting to throw `E_STRICT` in a 
minor version upgrade.  So I am -1 on that one as well.  We agreed to do 
this in PHP 6 a while ago.  What has changed to move that to 5.x now?

> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

I don't really see why we need strictness here.  If people want to 
redefine their statics on the fly, why get in their way?  Of course, I 
also don't see why you would want to change the class definition on the 
fly like this.  And would it change already instantiated objects of that 
class as well?  So I am not against it assuming the semantics are sane. 
  +0 I guess.

-Rasmus

---

## #23507 — Lukas Smith — 2006-05-17T06:16:34+00:00

URL: https://externals.io/message/23490#23507 · In reply to: #23490

Ilia Alshanetsky wrote:

> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 

I do not like the idea of changing the constants in a minor release. I 
know "ALL" implies includes everything but I prefer to keep `E_ALL` like 
it is and add an E_PEDANTIC (and default to that in the sample ini files) ..

So -1

> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

We are dynamic everywhere. If you do not agree with this, than PHP is 
probably not your language. That being said there are several ways to 
work around this with defined static arrays or even $GLOBALS, which is 
why I never really ran into this issue myself.

Still +1

regards,
Lukas

---

## #23508 — Antony Dovgal — 2006-05-17T06:16:59+00:00

URL: https://externals.io/message/23490#23508 · In reply to: #23490

> There are 2 PHP 5.2 changes there has been a lot of back and forth  
> flaming going around and we need to finally come to a decision about.
> 
> The two topics are:
> 
> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 

E_RECOVERABLE should stay.
 `E_STRICT` should not.

> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

-1.

-- 
Wbr, 
Antony Dovgal

---

## #23509 — Sebastian Bergmann — 2006-05-17T06:53:52+00:00

URL: https://externals.io/message/23490#23509 · In reply to: #23490

Ilia Alshanetsky wrote:
> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 

 +0

> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

 -1

-- 
Sebastian Bergmann                      http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

---

## #23511 — Michael Wallner — 2006-05-17T07:31:25+00:00

URL: https://externals.io/message/23490#23511 · In reply to: #23490

Ilia Alshanetsky wrote:

> The two topics are:
> 
> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 

+1 for `E_RECOVERABLE_ERROR` as it's been `E_ERROR` before
-1 for E_STRICT, though

> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

+1, half-heartedly

Regards,
-- 
Michael

---

## #23513 — Petar Nedyalkov — 2006-05-17T07:53:33+00:00

URL: https://externals.io/message/23490#23513 · In reply to: #23490

> There are 2 PHP 5.2 changes there has been a lot of back and forth
> flaming going around and we need to finally come to a decision about.
>
> The two topics are:
>
> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 

+1

> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

-1

I already gave my opinion on that.

>
> So please throw in your +1/-1 so, that we can have a conclusion on
> these matters.
>
> Personally, I am against both changes.
>
> I think the error reporting level change is too major change for a
> minor release such as 5.2 and will cause problems for all the people
> who use things like `E_ALL` &~ `E_NOTICE` and will now
> see `E_STRICT` messages that is not their intent to see, with the
> setting they are only anticipating warnings and errors. Given that
> most people don't bother to turn of displaying of errors, it could
> have an affect on quite a few applications, very few big PHP apps can
> run without generating any `E_STRICT` messages.
>
> As far as statics, there are no BC reasons not to do it that I can
> think of, but it just seems wrong to me from a design perspective to
> allow dynamic creation of static object properties.
>
> Ilia Alshanetsky
> Advanced Internet Designs Inc.
> ilia@prohost.org
>
> P.S. Please stay on topic.

-- 

Cyberly yours,
Petar Nedyalkov
Devoted Orbitel Fan :-)

PGP ID: 7AE45436
PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc
PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436

---

## #23514 — Sebastian Bergmann — 2006-05-17T08:10:11+00:00

URL: https://externals.io/message/23490#23514 · In reply to: #23509

Sebastian Bergmann wrote:
> > […]
> 
> -1

 Apparently I had the wrong context when I read a posting by Marcus on
 technical issues (slowdown).

 If there are no technical issues with implementing this, then I am -0
 on this.

-- 
Sebastian Bergmann                      http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

---

## #23516 — Georg Richter — 2006-05-17T08:27:50+00:00

URL: https://externals.io/message/23490#23516 · In reply to: #23490

Am Mi, den 17.05.2006 schrieb Ilia Alshanetsky um 1:26:

-1 for `E_STRICT` in 5.x

/Georg

---

## #23519 — Ford — 2006-05-17T08:44:15+00:00

URL: https://externals.io/message/23490#23519 · In reply to: #23511

Ilia Alshanetsky wrote:

> The two topics are:
>
> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 

-1/+1
 `E_RECOVERABLE_ERROR` has to be in as it's taken over some previously `E_ERROR` situations.
It's probably too soon for `E_STRICT` right now, although it should be enabled in some 5.x.0 release (with sufficient fanfare!).
 
> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

-0
 
--------------------------------------------------------------------- 
Mike Ford,  Electronic Information Services Adviser, 
Learning Support Services, Learning & Information Services, 
JG125, James Graham Building, Leeds Metropolitan University, 
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom 
Email: m.ford@leedsmet.ac.uk 
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 


To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

---

## #23524 — Zeev Suraski — 2006-05-17T09:23:32+00:00

URL: https://externals.io/message/23490#23524 · In reply to: #23490

At 02:26 17/05/2006, Ilia Alshanetsky wrote:
>There are 2 PHP 5.2 changes there has been a lot of back and forth
>flaming going around and we need to finally come to a decision about.
>
>The two topics are:
>
>Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 

-1

>Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;

-1

---

## #23525 — Mark Sanders — 2006-05-17T09:36:42+00:00

URL: https://externals.io/message/23490#23525 · In reply to: #23490

Ilia Alshanetsky wrote:
> Inclusion of `E_STRICT` and `E_RECOVERABLE_ERROR` into `E_ALL` 
-1

Changing the behavior of error reporting can have some implications on 
servers where it is intended to not show errors at least with `E_STRICT` 
errors.
> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1;
+1

This would allow for more dynamic code and since in the non static 
context it is already allowed I see no reason to not allow it in static 
context.

---

Next page: https://externals.io/message/23490.md?page=2
