Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Steph Fox
Its hard to find a major OO language that does not have property/accessor method support. Fine. Go use one of those. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Alan Knowles
Just to be complete ;) D: int hidden_name; public int the_var_name() { return hidden_name; } private void the_var_name(int s_value) { hidden_name = s_value; } ref: http://www.digitalmars.com/d/archives/56.html Regards Alan Jeff Moore wrote: On May 16, 2006, at 7:28 PM, D. Dante Lorenso w

Re: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Robert Amos
On 5/17/06, Ilia Alshanetsky <[EMAIL PROTECTED]> 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 for E_RECOVERABLE_

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Jared White
On May 17, 2006, at 2:25 PM, Stanislav Malyshev wrote: This would be, however, yet another level of complexity added to the language... OOP is already a level of complexity. If you're going to have OOP in the language, it needs to support at least the standard needs that developers have w

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Mark Sanders
Stanislav Malyshev wrote: This would be, however, yet another level of complexity added to the language... I think that for the end user it becomes less complicated ... Try to explain a newbie how to properly use getters or setters or even explain him the magic method (using __get and __set

[PHP-DEV] Re: Flamewar Summary

2006-05-17 Thread bertrand Gugger
Bonsoir Ilia Alshanetsky wrote: Inclusion of E_STRICT and E_RECOVERABLE_ERROR into E_ALL -0 I don't like it , but we can easily get over. Addition of support for dynamic statics ala: class foo {} foo::$bar = 1; -1 We rarely use it, and I think alan's way is ok for those using it massively. So

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread bertrand Gugger
Bonsoir Pierre wrote: Why don't you ask for an access to the wiki and update this list there? -- Pierre You need access to that ? -- toggg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Stanislav Malyshev
JM>>1. __get/__set are too cumbersome for simple use cases. (Hence this JM>>thread) This thread is in no way "simple use case". JM>>2. __get/__set is slow. (In the best case: about 10x slower than simple JM>>property, 3x slower than an accessor method call) Slow as opposed to calling differe

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Jeff Moore
On May 16, 2006, at 7:28 PM, D. Dante Lorenso wrote: I'm not familiar with this OOP concept from any other language. Perhaps it exists, but if it doesn't, is there a reason why? Hello, Its hard to find a major OO language that does not have property/accessor method support. C#: private

[PHP-DEV] Light at the end of the tunnel, was: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_errors.h

2006-05-17 Thread Marcus Boerger
Hello internals, i already admitted that i had an oversight in my tons of patches while going down the PHP 5.2 TODO list. Now i am really overwhelmed by the fact that indeed people were pointing me to decisions. WOW, that must be a first. I hope i can point others to decisions as well. Look at t

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Marcus Boerger
Hello Stanislav, Wednesday, May 17, 2006, 12:30:35 PM, you wrote: JG>>> private readable $abc; JG>>> - doesn't make sense. JG>>> JG>>> protected readable $abc; JG>>> - sub-class can read, not write JG>>> - not visible outside class JG>>> JG>>> public readable $abc; JG>>> - sub-class can

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Marcus Boerger
Hello Sebastian, it simply means that derived classes cannot write that variable. Other languages already allow that and it is actually very convenent. One of the things i really liked about Borland C++. In contrast "protected readbale" means that dervied classes may also write that thing in que

Re: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Marcus Boerger
Hello Sebastian, there is a technical issue besides slowdown. We have to work around the fact that suddenly a function might get $this as a normal variable (remember the examples give on this list included that). Right now $this is handled by a special zval not stored in the local or global symo

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Marcus Boerger
Hello Jason, so i forget about the other. Once you have tests we can fit them into the source tree so that they go here: http://gcov.php.net best regards marcus Wednesday, May 17, 2006, 4:54:28 PM, you wrote: > Hello Hannes, > Nothing is wrong, I presume. Ignorance on my part. > Thanks

[PHP-DEV] CVS Account Request: chappy

2006-05-17 Thread Lajos Cseppent
Translating the documentation to Hungarian Dokumentáció magyarra fordítása -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Sean Coates
Ilia Alshanetsky wrote: > Let's keep this number of lists to the minimum. Thanks to Lukas, we > already have a wiki with all this information, lets keep using it, the > release process is complex enough already without having to scramble > around looking for information on dozens of websites. Spea

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Ilia Alshanetsky
Let's keep this number of lists to the minimum. Thanks to Lukas, we already have a wiki with all this information, lets keep using it, the release process is complex enough already without having to scramble around looking for information on dozens of websites. On 17-May-06, at 12:19 PM, P

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Pierre
On Wed, 17 May 2006 17:19:06 +0100 [EMAIL PROTECTED] (Phil Driscoll) wrote: > On Wednesday 17 May 2006 16:47, Martin Jansen wrote: > > OS X, preferably both on the Intel- and the PowerPC-platform. > added to > http://www.dialsolutions.com/phil/php/primarytesters.html > :) Why don't you ask for an

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Phil Driscoll
On Wednesday 17 May 2006 16:47, Martin Jansen wrote: > OS X, preferably both on the Intel- and the PowerPC-platform. added to http://www.dialsolutions.com/phil/php/primarytesters.html :) -- Phil Driscoll -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.ph

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Brian Moon
OS X, preferably both on the Intel- and the PowerPC-platform. Oh yes. I need to be able to develop on my MacBook Pro. -- Brian Moon - http://dealnews.com/ Its good to be cheap =) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/uns

Re: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Andi Gutmans
At 04:26 PM 5/16/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 Addition of support for dynamic st

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Martin Jansen
On Tue May 16, 2006 at 09:5439PM +0100, Phil Driscoll wrote: > I guess as well as a software list, we need an important platform list so we > know that an RC has been exercised on at least: > Linux X86 Apache module > Linux X86_64 Apache module > BSD Apache module > Solaris Apache module > Windows

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Jason Garber
Hello Hannes, Nothing is wrong, I presume. Ignorance on my part. Thanks. -- Best regards, Jasonmailto:[EMAIL PROTECTED] Wednesday, May 17, 2006, 7:50:47 AM, you wrote: HM> Hi Jason >> I've put together a simple test framework and a 18 test cases to HM> Wha

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Lukas Smith
Phil Driscoll wrote: To move this process forward, is there any chance that you could make a few changes to http://oss.backendmedia.com/ReleaseChecklist? I have added a link to your post as a comment in the page. Since I am not an RM I will leave it to Ilia and Derick to incorporate these ide

RE: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Jared Williams
> 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 {} > fo

[PHP-DEV] Another error level needed? [WAS] Flamewar Summary

2006-05-17 Thread Steph Fox
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 f

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread bertrand Gugger
Bonjour, Greg Beaver wrote: Sebastian Bergmann wrote: Ilia Alshanetsky wrote: For every RC we already send an e-mail to about 12 projects asking them to test their code against the release and let us know of any issues that come up. Sadly, this does not seem to work. Maybe because nobody

Re: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Ilia Alshanetsky
On 17-May-06, at 2:10 AM, Rasmus Lerdorf wrote: 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 do

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Greg Beaver
Sebastian Bergmann wrote: > Ilia Alshanetsky wrote: > >>For every RC we already send an e-mail to about 12 projects asking them >>to test their code against the release and let us know of any issues >>that come up. > > > Sadly, this does not seem to work. Maybe because nobody from the > projec

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Lukas Smith
Jasper Bryant-Greene wrote: I'm not necessarily suggesting that a release be delayed because *my* application doesn't work, I'm just offering to test RCs against it and report any bugs that it turns up. If the bug is found to be with PHP and is sufficiently serious, then perhaps the release will

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Phil Driscoll
Lukas To move this process forward, is there any chance that you could make a few changes to http://oss.backendmedia.com/ReleaseChecklist? First add an extra item to 'Getting the Release Candidate out there' saying: Email [EMAIL PROTECTED] to notify the primary testers to get testing. An example

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Stanislav Malyshev
TVW>>To me it seems this is going to lead to: (unwanted) TVW>> TVW>>readonly public, readonly protected, readonly private TVW>>writeonly public, writeonly protected, writeonly private TVW>>readwrite (or regular) public, protected and private Why one would need writeonly? I see no use for it. -- S

Re: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Steph Fox
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 dist

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Hannes Magnusson
Hi Jason I've put together a simple test framework and a 18 test cases to Whats wrong with 'run-tests.php' ? http://qa.php.net/write-test.php -Hannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Tim Van Wassenhove
On 2006-05-17, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > JG>> private readable $abc; > JG>> - doesn't make sense. > JG>> > JG>> protected readable $abc; > JG>> - sub-class can read, not write > JG>> - not visible outside class > JG>> > JG>> public readable $abc; > JG>> - sub-class ca

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Stanislav Malyshev
JG>> private readable $abc; JG>> - doesn't make sense. JG>> JG>> protected readable $abc; JG>> - sub-class can read, not write JG>> - not visible outside class JG>> JG>> public readable $abc; JG>> - sub-class can read, and write JG>> - outside class can read, not write For me such setup

RE: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Dmitry Stogov
> Inclusion of E_STRICT and E_RECOVERABLE_ERROR into E_ALL I am not glad with E_RECOVERABLE_ERROR at all, but if it went into 5.2 it should be included into E_ALL, becouse in most cases it substitute E_ERROR messages. E_STRICT +0 E_RECOVERABLE_ERROR +1 > Addition of support for dynamic statics

Re: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Etienne Kneuss
Ilia Alshanetsky wrote: > 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 -- Etienne Kneuss http://www.colder.ch/ [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe,

Re: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Mark Sanders
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 {}

Re: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Zeev Suraski
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 dynam

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Sebastian Bergmann
Robin Ericsson wrote: > The big whohoo would be a complete PHPUnit test framework for PHP with > code coverage that replaces the old test framework. As long as PHPUnit cannot run each test in a new PHP interpreter process this would make no sense. And even then, why would we want to replace run

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Robin Ericsson
On 5/17/06, Sebastian Bergmann <[EMAIL PROTECTED]> wrote: I have brought this up before. Sebastian Nohn has taken up this idea and set up a box that checks out PHP from CVS, builds it, and then runs "make test" as well as the unit tests of projects like PHPUnit and the Zend Framework. The b

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Sebastian Bergmann
Markus Fischer wrote: > Is there any software out there which uses PHPUnit(2)? So those > automatic suites could be used as well. I have brought this up before. Sebastian Nohn has taken up this idea and set up a box that checks out PHP from CVS, builds it, and then runs "make test" as well as t

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Stanislav Malyshev
AG>>Probably because private variables do often have getters and setters, AG>>whereas something which is marked as read-only (like a harddrive) AG>>tends to be read-only always. I think that by itself returning writable reference to such variable voluntarily is undesirable, but not fatal - i.e.

RE: [PHP-DEV] Re: Flamewar Summary

2006-05-17 Thread Ford, Mike
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 rel

Re: [PHP-DEV] PHP Release Process Sucks

2006-05-17 Thread Markus Fischer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Phil Driscoll wrote: > On Tuesday 16 May 2006 21:35, Richard Lynch wrote: >> Would it be worth having a checklist of "must-have" software? >> >> It's easy to see something big getting missed just because "Joe" is on >> vacation or too busy to test, and

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Sebastian Bergmann
Andi Gutmans wrote: > All I meant was that the implementation is one step (and a very > necessary step) but that having a patch doesn't always mean it should > be applied right away. I just want to make sure we all think it through > and discuss the different cases. IMHO, it is very cumbersome t

Re: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Georg Richter
Am Mi, den 17.05.2006 schrieb Ilia Alshanetsky um 1:26: -1 for E_STRICT in 5.x /Georg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Sebastian Bergmann
Marcus Boerger wrote: >private readable $abc; >- class itself can read and write >- public for everybody when reading, inside & outside of the class This means that a private attribute becomes part of the public interface of a class. I am not sure if this really is desirable. -- Se

Re: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Sebastian Bergmann
Sebastian Bergmann wrote: >> Addition of support for dynamic statics ala: class foo {} foo::$bar = 1; > > -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. --

Re: [PHP-DEV] Flamewar Summary

2006-05-17 Thread Petar Nedyalkov
On Wednesday 17 May 2006 02:26, 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 o

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Christian Schneider
Ron Korving wrote: I'm a big fan of this keyword. No "", and this is in fact clearer and better than the readonly keyword I advocated. Great idea :) Just a quick question because I wasn't able to test any implementation yet: Does the new keyword conflict with functions/methods/properties o

[PHP-DEV] Re: Flamewar Summary

2006-05-17 Thread Michael Wallner
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, -- Mich

Re: [PHP-DEV] private, protected, readonly, public

2006-05-17 Thread Ron Korving
Marcus, I'm a big fan of this keyword. No "", and this is in fact clearer and better than the readonly keyword I advocated. Great idea :) Ron "Marcus Boerger" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hello Jason, > > i changed from readonly to readable, which means