Re: [PHP-DEV] Pre-Destructor magic function?

2007-08-10 Thread Arnold Daniels
Hi Nathanael, If you've been watching the list you could have seen that David Wang (god bless his soul) is working on this at the moment. Have a look at http://marc.info/?l=php-dev&m=118418663902191&w=2. You'll have to stick with your custom solution for now though. Best regards, Arnold Na

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Larry Garfield
On Friday 10 August 2007, Stanislav Malyshev wrote: > > Incorrect, a name for a feature should show what kind of > > functionality we implemented. Picking names just for marketing reasons > > "Oh see, PHP has namespaces" is a bad idea. > > I, on the contrary, think it is a good idea to consider per

[PHP-DEV] Pre-Destructor magic function?

2007-08-10 Thread Nathanael D. Noblet
Hello, I have a case where an object has a few variables, a couple of which are objects which hold references back to this object. So very simply something like class A { var B } class B { var A } When doing something like so $obj = new A(); in a loop the object's never released from

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Stanislav Malyshev
After all that has been said and done since this post: http://marc.info/?l=php-dev&m=118355320225178&w=2 Is it safe to say that this functionality laid out is still representative of what is involved in the "namespace" patch? Yes, though there might be some fine points omitted, etc. but in gen

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Ralph Schindler
After all that has been said and done since this post: http://marc.info/?l=php-dev&m=118355320225178&w=2 Is it safe to say that this functionality laid out is still representative of what is involved in the "namespace" patch? Or, is there a wiki / proposal page somewhere that would better exe

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Stanislav Malyshev
Except for a little thing, those are not namespaces, but something more similar to packages. What is "namespaces"? Here's wikipedia: A namespace is a context in which a group of one or more identifiers might exist. An identifier defined in a namespace is associated with that namespace. The sa

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Robert Cummings
On Fri, 2007-08-10 at 16:38 -0400, Cristian Rodriguez wrote: > On 8/10/07, Marc Gear <[EMAIL PROTECTED]> wrote: > > > You're absolutly right. > > > > Except for a little thing, those are not namespaces, but something > more similar to packages. namages? packspaces? tomayto? tomahto? *teehee*

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Cristian Rodriguez
On 8/10/07, Marc Gear <[EMAIL PROTECTED]> wrote: > You're absolutly right. > Except for a little thing, those are not namespaces, but something more similar to packages. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Marc Gear
On 8/10/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > I, on the contrary, think it is a good idea to consider perception. > Perception is important, especially for low-barrier language like PHP. > ... > My perception is that when people talk about "namespaces" they usually > mean logical sepa

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Stanislav Malyshev
Incorrect, a name for a feature should show what kind of functionality we implemented. Picking names just for marketing reasons "Oh see, PHP has namespaces" is a bad idea. I, on the contrary, think it is a good idea to consider perception. Perception is important, especially for low-barrier la

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Pierre
On 8/10/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > "package" is also shorter than "namespace". Just commit the stuff, it's > > pointless to argue about it. Majority rules. > > Did we ever have a vote? Or it's one man with courage makes a majority? ;) The later seems to be more true than

RE: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Jeremy Privett
Hey Stanislav, I think the issue is that of confusion. When I first heard PHP6 was going to have namespaces, I was expecting namespaces like C++ or C#. What was actually provided was confusing, at first, because it didn't behave like "namespaces" in other languages that I've used. Personally,

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Stanislav Malyshev
"package" is also shorter than "namespace". Just commit the stuff, it's pointless to argue about it. Majority rules. Did we ever have a vote? Or it's one man with courage makes a majority? ;) -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Stanislav Malyshev
Well, our implementation is not namespaces, "packet" doesn't have any Where I can see definition of what is "namespaces" and what is not? I can live with "packages", though I like this name less - but what I don't really understand is why anything that doesn't work like c++ namespaces can't no

Re: [PHP-DEV] PHP-taint update

2007-08-10 Thread Guilherme Blanco
Hi, @Graham: It will probably be one of the two: 1- Overwrite the superglobal indexes ( $_GET['foo']->asFloat() ) 2- Use a method/class to taint the value ( taint_float( $_GET['foo'] ) ) I illustrated both and why both have their drawback. @Richard: I already read the Marco's article. My implemen

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread David Coallier
On 8/10/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: > On Fri, 2007-08-10 at 14:35 +0200, Christian Schneider wrote: > > Derick Rethans wrote: > > > Well, our implementation is not namespaces, "packet" doesn't have any > > > meaning in this case, so perhaps you have a better suggestion than > > > "

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Jani Taskinen
On Fri, 2007-08-10 at 14:35 +0200, Christian Schneider wrote: > Derick Rethans wrote: > > Well, our implementation is not namespaces, "packet" doesn't have any > > meaning in this case, so perhaps you have a better suggestion than > > "package" then? > > Just a quick reminder to everybody here:

RE: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Dmitry Stogov
I have no serious objections about renaming. I am asking to wait a bit. Dmitry. > -Original Message- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: Friday, August 10, 2007 4:34 PM > To: Dmitry Stogov > Cc: 'Johannes Schlьter'; 'PHP Internals List'; Andi Gutmans; > Stanislav Ma

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Derick Rethans
On Fri, 10 Aug 2007, Christian Schneider wrote: > Derick Rethans wrote: > > Well, our implementation is not namespaces, "packet" doesn't have any > > meaning in this case, so perhaps you have a better suggestion than > > "package" then? > > Just a quick reminder to everybody here: The feature i

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Christian Schneider
Derick Rethans wrote: > Well, our implementation is not namespaces, "packet" doesn't have any > meaning in this case, so perhaps you have a better suggestion than > "package" then? Just a quick reminder to everybody here: The feature is important, the name (package or namespace) is less so. Even

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Marcus Boerger
Hello Dmitry, i actually only saw pros on the question. And the only remote nay i spotted during my original complaint was that there might be languages noone knows where packages are named namespaces as well. In general we so far always explained or compared PHP features with/against Java and o

RE: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Derick Rethans
On Fri, 10 Aug 2007, Dmitry Stogov wrote: > Please don't commit it. > We didn't come to conclusion, what name is better 'namespace', 'package', > 'packet' ... Well, our implementation is not namespaces, "packet" doesn't have any meaning in this case, so perhaps you have a better suggestion than

RE: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Dmitry Stogov
Please don't commit it. We didn't come to conclusion, what name is better 'namespace', 'package', 'packet' ... Thanks. Dmitry. > -Original Message- > From: Johannes Schlьter [mailto:[EMAIL PROTECTED] > Sent: Friday, August 10, 2007 1:27 PM > To: PHP Internals List > Cc: Dmitry Stogov > S

Re: [PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Marcus Boerger
Hello Johannes, thanks for the work, this even fixes the WS issues introduced by the orgininal patch. marcus Friday, August 10, 2007, 11:26:32 AM, you wrote: > Hi, > I think we reached the consensus to rename namespaces to packages as our > implementation is more package-like. Therefore I wr

[PHP-DEV] Renaming namespaces to packages

2007-08-10 Thread Johannes Schlüter
Hi, I think we reached the consensus to rename namespaces to packages as our implementation is more package-like. Therefore I wrote the corresponding patch which tries to get rid of all "namespaces" and "ns" (well, not all "ns" only the namespace-related ones of course) used in the code. Additiona

Re: [PHP-DEV] PHP-taint update

2007-08-10 Thread Richard Quadling
On 10/08/07, Guilherme Blanco <[EMAIL PROTECTED]> wrote: > Hi, > > It seems you had an interesting idea, but AFAIK it'll not incorporated > in core by PHP Team. > Yeah, sounds bad, but you cannot simply turn all variables into > objects and try to get them. > > Seems you're trying something like th

Re: [PHP-DEV] PHP-taint update

2007-08-10 Thread Richard Quadling
On 10/08/07, Guilherme Blanco <[EMAIL PROTECTED]> wrote: > Hi, > > It seems you had an interesting idea, but AFAIK it'll not incorporated > in core by PHP Team. > Yeah, sounds bad, but you cannot simply turn all variables into > objects and try to get them. > > Seems you're trying something like th

Re: [PHP-DEV] Getting Windows exec to work better.

2007-08-10 Thread Richard Quadling
On 09/08/07, Tim Starling <[EMAIL PROTECTED]> wrote: > Richard Quadling wrote: > > >On 09/08/07, Nuno Lopes <[EMAIL PROTECTED]> wrote: > > > > > >>Things are not that simple. > >>I would advise you to read a more than one year thread about the very same > >>subject: http://marc.info/?l=php-dev&m=11