[PHP-DEV] RE: Question on namespaces

2007-07-24 Thread Dmitry Stogov
Different languages have different 'package' model too. For example Java, Ada and Python have packages, but they are too different. BTW PHP's implementation is similar to Java packages and may be you are right about renaming. Thanks. Dmitry. > -Original Message- > From: Marcus Boerger [ma

Re: [PHP-DEV] multi-threaded run-tests.php

2007-07-24 Thread David Wang
Please. This would be a big help to me, since I'm running these tests many, many times a day as I develop the reference cycle collector. On 7/24/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, July 24, 2007 5:24 pm, Nuno Lopes wrote: > Recently we have moved http://gcov.php.net to a new

Re: [PHP-DEV] Question about Namespace patch

2007-07-24 Thread Richard Lynch
On Mon, July 23, 2007 9:52 am, Brian Moon wrote: > David Zülke wrote: >> Oh yes, sure, that must be the main point about namespaces - I can >> use >> "::" instead of "_" as a delimiter! Yay! > > If all you are going to do is: > > > include "MyClass.php"; > import MyClass; > > ?> > > Then why use a

Re: [PHP-DEV] multi-threaded run-tests.php

2007-07-24 Thread Richard Lynch
On Tue, July 24, 2007 5:24 pm, Nuno Lopes wrote: > Recently we have moved http://gcov.php.net to a new (and much faster) > server. This allowed us to reduce the time to build all branches to > "just" 2 > days (compared with almost one week that would take previously). > However I'm still not happy

Re: [PHP-DEV] Question about Namespace patch

2007-07-24 Thread Andy Mason
Well i'm not in favour of the importing of everything , i don't see the need for it personally but others do, as you well know. I was just trying to find a way to achieve everyone goals without sacrificing speed or correctness for those who want it =) Shame about the single file thing though. I'm

Re: [PHP-DEV] Question about Namespace patch

2007-07-24 Thread Stanislav Malyshev
Is this something that you would consider for PHP ? As far as I can tell from the list the two main considerations are not pushing the decision to the executor and it being simple. I can consider it as much as I want - and applications like Zend Framework do work this way - but I also know not

Re: [PHP-DEV] Question about Namespace patch

2007-07-24 Thread Stanislav Malyshev
But why not allow importing namespaced functions and constants into the global namespace? Because there's really no need to. Nothing wrong with namespace::function(). -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED]

Re: [PHP-DEV] Question about Namespace patch

2007-07-24 Thread Stanislav Malyshev
there is a __NAMESPACE__ constant, which is nice. Is there also a way to get the "full name" of a function or class, so you can see where it came from? Does import work for functions as well as classes? Inside namespace it's __NAMESPACE__.'::'.$short_name (yes, '::name' would be the same a

Re: [PHP-DEV] Question about Namespace patch

2007-07-24 Thread Stanislav Malyshev
Do __autoload() and the SPL autoload stack get namespace information as well? I didn't get that from the mail archive link posted yesterday. Autoload should get full class names (with namespace). -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-88

Re: [PHP-DEV] Question about Namespace patch

2007-07-24 Thread Larry Garfield
On Tuesday 24 July 2007, Andrew Minerd wrote: > On Tue, 24 Jul 2007 11:53:38 -0700 > > [EMAIL PROTECTED] (Stanislav Malyshev) wrote: > > > Where I can see a huge use for namespaces is plugin-based > > > architectures. Each plugin is its own namespace. If you have a list > > > of plugins, then you

Re: [PHP-DEV] Question on namespaces

2007-07-24 Thread Stanislav Malyshev
My only concern is that you took a package model and named it namespaces. Can we change the keyword from 'namespace' to 'package'? Actually, it's neither, but it's more like namespaces than packages IMHO. Though both terms are used in different languages in the roughly same sense. -- Stanis

Re: [PHP-DEV] toString() and Object #ID

2007-07-24 Thread Marcus Boerger
Hello all, and thanks Stas for the explanations. Monday, July 2, 2007, 7:52:03 PM, you wrote: >> We could add a counter that gets incremented for each object that is >> created and associate that number with the object. Wouldn't that solve >> the problem (if there is one)? > It would solve

[PHP-DEV] Question on namespaces

2007-07-24 Thread Marcus Boerger
Hello Dmitry, all, thanks for the namespaces. My only concern is that you took a package model and named it namespaces. Can we change the keyword from 'namespace' to 'package'? Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.p

Re: [PHP-DEV] Socket constants

2007-07-24 Thread Nicolas Bérard-Nault
Thank you ! On 7/24/07, Jani Taskinen <[EMAIL PROTECTED]> wrote: Addded. They will be available if the underlying system defines them. (And MSG_EOF is MSG_FIN on some systems..) --Jani On Sat, 2007-07-21 at 13:52 -0400, Nicolas Bérard-Nault wrote: > Is there a reason the MSG_EOR and MSG_EOF

[PHP-DEV] multi-threaded run-tests.php

2007-07-24 Thread Nuno Lopes
Hi, Recently we have moved http://gcov.php.net to a new (and much faster) server. This allowed us to reduce the time to build all branches to "just" 2 days (compared with almost one week that would take previously). However I'm still not happy :P The server has 2x2 CPU cores and I would like t

Re: [PHP-DEV] Question about Namespace patch

2007-07-24 Thread Andrew Minerd
On Tue, 24 Jul 2007 11:53:38 -0700 [EMAIL PROTECTED] (Stanislav Malyshev) wrote: > > Where I can see a huge use for namespaces is plugin-based architectures. > > Each > > plugin is its own namespace. If you have a list of plugins, then you have > > a > > list of namespaces and can iterate ov

Re: [PHP-DEV] Question about Namespace patch

2007-07-24 Thread Stanislav Malyshev
Where I can see a huge use for namespaces is plugin-based architectures. Each plugin is its own namespace. If you have a list of plugins, then you have a list of namespaces and can iterate over that and invoke the same operation on each plugin. That would require call_user_func() and call_use

Re: [PHP-DEV] "No Feedback" in bug tracker

2007-07-24 Thread Stanislav Malyshev
A suggestion: allow anyone to reopen bugs marked "no feedback". Also allow anyone to switch a bug from "feedback" to "open". I believe this idea has a great deal of merit, unless it has proven to be subject to abuse in the past or something. I agree with "no feedback", but not necessarily with

Re: [PHP-DEV] Question about Namespace patch

2007-07-24 Thread Rasmus Lerdorf
Matthew Kavanagh wrote: > Rasmus Lerdorf wrote: >> Stanislav Malyshev wrote: >> >>> Compile-time resolution means you don't get performance penalty for >>> namespaces when you are not using it, and have very low costs when you >>> do use it. Allowing blanket imports means we don't know what "new

[PHP-DEV] [PHP DEV] CVS account extra karma request

2007-07-24 Thread Andy Wharmby
Hi Internals I am working with Zoe Slattery and Raghbansh Kumar developing new PHPT testcases for PHP and I would like to request the necesary karma to to commit new tests. I already have a CVS account (id=wharmby) so just need the necessary extra karma to drop the test cases. Regards

Re: [PHP-DEV] Question about Namespace patch

2007-07-24 Thread Matthew Kavanagh
Rasmus Lerdorf wrote: Stanislav Malyshev wrote: Compile-time resolution means you don't get performance penalty for namespaces when you are not using it, and have very low costs when you do use it. Allowing blanket imports means we don't know what "new Foo()" means until it is executed - mean

Re: [PHP-DEV] packaged extensions versions on pecl4win: initial source release

2007-07-24 Thread Gaetano Giunta
On 7/22/07, Pierre <[EMAIL PROTECTED]> wrote: On 7/22/07, Gaetano Giunta <[EMAIL PROTECTED]> wrote: > What I do is: > - fetch list of extensions from pecl.php.net, getting the html page of > cvs.php.net/pecl4win/ and scanning it > - fetch the latest and greatest version of every extension from

[PHP-DEV] PHP 5.2.4RC1 Plan

2007-07-24 Thread Ilia Alshanetsky
It has been a while since our last release and the ChangeLog has grown quite a bit, so I think it is time to start thinking about 5.2.4 release before the change set becomes unmanageable. To this effect I'd like to start the release cycle with RC1 planned for Thursday next week. Hopefully a

Re: [PHP-DEV] Socket constants

2007-07-24 Thread Jani Taskinen
Addded. They will be available if the underlying system defines them. (And MSG_EOF is MSG_FIN on some systems..) --Jani On Sat, 2007-07-21 at 13:52 -0400, Nicolas Bérard-Nault wrote: > Is there a reason the MSG_EOR and MSG_EOF constants are not registered in > PHP ? If not, could someone apply t