Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-15 Thread John LeSueur
On Sat, Apr 14, 2012 at 11:55 PM, Kris Craig kris.cr...@gmail.com wrote: On Sat, Apr 14, 2012 at 10:16 PM, Anthony Ferrara ircmax...@gmail.com wrote: Kris, As discussed on other threads, PHPP files that are called directly from the webserver are handled by the SAPI handler and thus

Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-15 Thread Kris Craig
On Sat, Apr 14, 2012 at 11:20 PM, John LeSueur john.lesu...@gmail.comwrote: On Sat, Apr 14, 2012 at 11:55 PM, Kris Craig kris.cr...@gmail.com wrote: On Sat, Apr 14, 2012 at 10:16 PM, Anthony Ferrara ircmax...@gmail.com wrote: Kris, As discussed on other threads, PHPP files that are

Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-15 Thread Lester Caine
Kris Craig wrote: I object significantly to a few points here. One is the concept of a magic file extension. Why should a file behave differently just because of a different extension? In general, extensions are human readable clues to what's in the file. Yes, they are usually used for

[PHP-DEV] Go for votes for the open tag-less PHP files

2012-04-15 Thread Pierre Joye
hi! Without willing to end discussions prematurely, it looks to me that everything possible have been said about the various opening tags proposals. For one, I do not follow any of these discussions anymore. And I suppose I am not the only one. I would strongly suggest to move to the actual

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-15 Thread David Muir
On 14/04/12 03:41, Kris Craig wrote: On Thu, Apr 12, 2012 at 11:37 PM, David Muir davidkm...@gmail.com mailto:davidkm...@gmail.com wrote: On 13/04/12 15:13, Kris Craig wrote: Again, the controller should NOT be a .phpp file. Likewise, your model should NOT be hooking

[PHP-DEV] Re: Go for votes for the open tag-less PHP files

2012-04-15 Thread Kris Craig
On Sun, Apr 15, 2012 at 3:47 AM, Pierre Joye pierre@gmail.com wrote: hi! Without willing to end discussions prematurely, it looks to me that everything possible have been said about the various opening tags proposals. Actually, we finally appear to be making some headway. I appreciate

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-15 Thread Kris Craig
On Sun, Apr 15, 2012 at 3:58 AM, David Muir davidkm...@gmail.com wrote: On 14/04/12 03:41, Kris Craig wrote: On Thu, Apr 12, 2012 at 11:37 PM, David Muir davidkm...@gmail.com wrote: On 13/04/12 15:13, Kris Craig wrote: Again, the controller should NOT be a .phpp file. Likewise, your

[PHP-DEV] Re: Go for votes for the open tag-less PHP files

2012-04-15 Thread Pierre Joye
hi, On Sun, Apr 15, 2012 at 1:00 PM, Kris Craig kris.cr...@gmail.com wrote:  Perhaps a new list for RFC-specific discussions?  =) We don't need yet a new list. Sit down together and get over your differences and create the RFC or more if you can't get over your differences. Cheers, -- Pierre

Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-15 Thread Kris Craig
On Sun, Apr 15, 2012 at 2:30 AM, Lester Caine les...@lsces.co.uk wrote: Kris Craig wrote: I object significantly to a few points here. One is the concept of a magic file extension. Why should a file behave differently just because of a different extension? In general, extensions are

Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-15 Thread David Muir
On 15/04/12 16:29, Kris Craig wrote: On Sat, Apr 14, 2012 at 11:20 PM, John LeSueur john.lesu...@gmail.comwrote: The second thing that still needs nailing down as far as implementation is how to determine parsing mode. If it has to be specified at include time, then we're putting the burden

Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-15 Thread Jannik Zschiesche
Am 15.04.2012 08:20, schrieb John LeSueur: Since you're looking for input, specifically on the compromise, let's try to figure out what's possible. The RFC proposes .phpp files that can only include other .phpp files. Others want .phpp files that can include .php files. There are two ways I can

Re: [PHP-DEV] New Feature: Fully qualified class name resolution as scalar with class keyword

2012-04-15 Thread Ralph Schindler
I used to implement `public static function getClass() { return get_called_class(); }`, so I really like this one, makes it also easier for IDEs when refactoring code :) Oh completely, that is one of the major benefits. My current workflow for refactoring is to refactor with the built-in

Re: [PHP-DEV] Re: Go for votes for the open tag-less PHP files

2012-04-15 Thread Tom Boutell
I don't think a consensus on the following points is likely to emerge without voting on them individually. I propose carrying out a vote with up to three questions to be answered depending on your response to each. We could then proceed to discuss the (relatively boring but essential) details of

Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-15 Thread John LeSueur
On Sun, Apr 15, 2012 at 7:21 AM, Jannik Zschiesche he...@apfelbox.netwrote: Am 15.04.2012 08:20, schrieb John LeSueur: Since you're looking for input, specifically on the compromise, let's try to figure out what's possible. The RFC proposes .phpp files that can only include other .phpp

Re: [PHP-DEV] New Feature: Fully qualified class name resolution as scalar with class keyword

2012-04-15 Thread Lars Strojny
Hi Ralph, hi everybody, given the clear use case and the simplicity of the patch, a very good idea. With regards, Lars Am 15.04.2012 um 16:13 schrieb Ralph Schindler: I used to implement `public static function getClass() { return get_called_class(); }`, so I really like this one, makes

Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-15 Thread Arvids Godjuks
Well, it's time for me to remind about the techique many use (and some frameworks provide it out of the box) - the application file concatination to speed up file loading. Yii framework provides a Yiilite.php file for this, that includes mostly used core classes in one big file.that loads much

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-15 Thread Ferenc Kovacs
The gain has been described by myself and others quite a bit already. As far as I can tell, the fact that some frameworks/libraries wouldn't be compatible with this doesn't negate the unrelated advantages that do exist. Worst-case scenario, you just wouldn't use this with those frameworks.

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-15 Thread Arvids Godjuks
I posted the bellow text in other thread, but i should have it post here, so i'm reposting it to this thread. Well, it's time for me to remind about the techique many use (and some frameworks provide it out of the box) - the application file concatination to speed up file loading. Yii framework

Re: [PHP-DEV] A possible defining characteristic of PHP 6 ( was [off] PHP: a fractal of bad design )

2012-04-15 Thread Simon Schick
Hi, Michael 2012/4/13 Michael Morris dmgx.mich...@gmail.com It would not be easy.  I lack the skills required.  And those who have the skills lack the monumental time required.  But PHP could do what Adobe did with Actionscript.  But it would not be easy or painless. It probably isn't worth

Re: [PHP-DEV] Ability to assign new object to a class property.

2012-04-15 Thread Simon Schick
2012/4/13 Dmitri Snytkine dsnytk...@ultralogistics.com: I always wondered why can't we do something like this in php class MyClass{ private $storage = new ArrayObject(); public function __construct($v){ // whatever } // rest of class } Why can't we create a new object and assign it

Re: [PHP-DEV] New Feature: Fully qualified class name resolution as scalar with class keyword

2012-04-15 Thread Simon Schick
2012/4/14 Ralph Schindler ra...@ralphschindler.com: Hi all, There are many different use cases were in code we expect classes names as arguments to functions as fully qualified names.  We do this in ZF a lot with our Service Location and DI components, but also with our code reflection API,

Re: [PHP-DEV] Re: Go for votes for the open tag-less PHP files

2012-04-15 Thread Kris Craig
On Sun, Apr 15, 2012 at 7:35 AM, Tom Boutell t...@punkave.com wrote: I don't think a consensus on the following points is likely to emerge without voting on them individually. I propose carrying out a vote with up to three questions to be answered depending on your response to each. We could

Re: [PHP-DEV] Re: Go for votes for the open tag-less PHP files

2012-04-15 Thread Kris Craig
err it might be 1 week, not 2. Either way, it's definitely too soon for mine to be voted on. --Kris On Sun, Apr 15, 2012 at 4:42 PM, Kris Craig kris.cr...@gmail.com wrote: On Sun, Apr 15, 2012 at 7:35 AM, Tom Boutell t...@punkave.com wrote: I don't think a consensus on the following

Re: [PHP-DEV] Re: Go for votes for the open tag-less PHP files

2012-04-15 Thread Kris Craig
Bah sorry everyone, I just woke up and I'm still a little groggy lol. It is in fact 2 weeks. --Kris On Sun, Apr 15, 2012 at 4:43 PM, Kris Craig kris.cr...@gmail.com wrote: err it might be 1 week, not 2. Either way, it's definitely too soon for mine to be voted on. --Kris On Sun, Apr

Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-15 Thread Kris Craig
On Sun, Apr 15, 2012 at 8:44 AM, John LeSueur john.lesu...@gmail.comwrote: On Sun, Apr 15, 2012 at 7:21 AM, Jannik Zschiesche he...@apfelbox.net wrote: Am 15.04.2012 08:20, schrieb John LeSueur: Since you're looking for input, specifically on the compromise, let's try to figure out

Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-15 Thread Kris Craig
On Sun, Apr 15, 2012 at 2:14 PM, Arvids Godjuks arvids.godj...@gmail.comwrote: Well, it's time for me to remind about the techique many use (and some frameworks provide it out of the box) - the application file concatination to speed up file loading. Yii framework provides a Yiilite.php file

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-15 Thread Kris Craig
On Sun, Apr 15, 2012 at 2:30 PM, Arvids Godjuks arvids.godj...@gmail.comwrote: I posted the bellow text in other thread, but i should have it post here, so i'm reposting it to this thread. Well, it's time for me to remind about the techique many use (and some frameworks provide it out of the

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-15 Thread Kris Craig
On Sun, Apr 15, 2012 at 2:21 PM, Ferenc Kovacs tyr...@gmail.com wrote: The gain has been described by myself and others quite a bit already. As far as I can tell, the fact that some frameworks/libraries wouldn't be compatible with this doesn't negate the unrelated advantages that do exist.

Re: [PHP-DEV] New Feature: Fully qualified class name resolution as scalar with class keyword

2012-04-15 Thread Ralph Schindler
One thing I personally dislike in this implementation is the difference between CLASS and class ... One with and one without namespaces ... I am not quite following. There is no functional difference between class, CLASS, or Class. The parser is case insensitive with regards to keywords,

[PHP-DEV] Re: Go for votes for the open tag-less PHP files

2012-04-15 Thread Yasuo Ohgaki
Hi, It would be better to vote - PHP will have script only (tag less) code or not then - How it will be implemented Regards, -- Yasuo Ohgaki yohg...@ohgaki.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Go for votes for the open tag-less PHP files

2012-04-15 Thread Kris Craig
On Sun, Apr 15, 2012 at 6:39 PM, Yasuo Ohgaki yohg...@ohgaki.net wrote: Hi, It would be better to vote - PHP will have script only (tag less) code or not then - How it will be implemented Regards, -- Yasuo Ohgaki yohg...@ohgaki.net Awhile back, I raised the possibility of