Re: [PHP-DEV] Re: solving most git issues and questions

2012-04-14 Thread Ferenc Kovacs
imo it is already covered by https://wiki.php.net/vcs/gitfaq#multiple_working_copies_workflow On Sat, Apr 14, 2012 at 7:17 AM, Alan Knowles a...@akbkhome.com wrote: Saw this mentioned on one of the blogs comments today.

Re: [PHP-DEV] Re: solving most git issues and questions

2012-04-14 Thread Alan Knowles
Ah.. Missed that, I only saw the workflow page which I just noticed fleetingly mentions that there are alternative work flows in the faq. regards Alan -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Ferenc Kovacs tyr...@gmail.com wrote: imo it is already covered by

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

2012-04-14 Thread Dmitri Snytkine
Why not? It's convenient to assign an empty array to a property in this manner. private $storage = array(); So why not private $storage = new ArrayObject(); Doing stuff like this in class definition vs in constructor just makes code look cleaner. Dmitri Snytkine Web Developer Ultra

Re: [PHP-DEV] [RFC] Allow use( $longname as $alias) syntax for closures declaration

2012-04-14 Thread Ralph Schindler
For variables, it's not very useful. For expressions, might allow to avoid some boilerplate code - for the same reason we allow expressions in function calls - we might ban that, and have people assign expressions to variables and then use variables for function calls, but we recognize it is

[PHP-DEV] Wiki account access

2012-04-14 Thread Ralph Schindler
I have an account on wiki.php.net (I don't remember signing up on docuwiki, only the svn account page, but its there already and linked to my email address on this list.) I can't seem to reset my password. When I get the email for the password reset, the wiki.php.net page tells me: *

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

2012-04-14 Thread John Crenshaw
Sent: Friday, April 13, 2012 3:39 PM On Fri, Apr 13, 2012 at 12:12 PM, John Crenshaw johncrens...@priacta.com wrote: On top of this, there's an argument that you're not addressing: most template engines in PHP either directly consume PHP template files... or compile templates

Re: [PHP-DEV] Wiki account access

2012-04-14 Thread Pierre Joye
hi, On Sat, Apr 14, 2012 at 5:21 PM, Ralph Schindler ra...@ralphschindler.com wrote: I have an account on wiki.php.net (I don't remember signing up on docuwiki, only the svn account page, but its there already and linked to my email address on this list.)  I can't seem to reset my password.

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

2012-04-14 Thread Lester Caine
John Crenshaw wrote: I think that covered just about everything quite tidily John. Certainly a lot more succinct than I would have managed! Well put ... -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services -

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

2012-04-14 Thread Ralph Schindler
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, etc. A more interesting use case I would like to

Re: [PHP-DEV] [RFC] Allow use( $longname as $alias) syntax for closures declaration

2012-04-14 Thread Stas Malyshev
Hi! Help me understand, b/c I am not clear what you mean by we allow expressions in function calls. This is my immediate understanding of the anatomy of a closure: Function call: f($a, $b+$c); Closure: $x = function ($arg) use($a, $b+$c as $bplusc) { /*...*/ } For the same reason we

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

2012-04-14 Thread Rasmus Schultz
From: Arvids Godjuks arvids.godj...@gmail.com To: Kris Craig kris.cr...@gmail.com Cc: PHP internals list internals@lists.php.net, Yasuo Ohgaki yohg...@ohgaki.net Date: Fri, 13 Apr 2012 03:26:16 +0300 Subject: Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts Well, I just

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

2012-04-14 Thread Stas Malyshev
Hi! It's convenient to assign an empty array to a property in this manner. private $storage = array(); So why not private $storage = new ArrayObject(); array is a static constant. Objects have complex behavior. So it's better to handle this in ctor. I see no value in splitting ctor into

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

2012-04-14 Thread Yasuo Ohgaki
Hi, 2012/4/15 Rasmus Schultz ras...@mindplay.dk: the closing tag isn't even required to begin with, so you can really think of ?php as a 5-byte file-header. If it is supposed to exist always at the beginning of files. Anyway, file extension should not matter and it should be a configuration

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

2012-04-14 Thread Marco Pivetta
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 :) I was wondering about `class A { const CLASS = 'hello'; }` but that would cause an unexpected `T_CLASS`, so I guess there's no

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

2012-04-14 Thread Kris Craig
On Sat, Apr 14, 2012 at 1:35 PM, Rasmus Schultz ras...@mindplay.dk wrote: From: Arvids Godjuks arvids.godj...@gmail.com To: Kris Craig kris.cr...@gmail.com Cc: PHP internals list internals@lists.php.net, Yasuo Ohgaki yohg...@ohgaki.net Date: Fri, 13 Apr 2012 03:26:16 +0300 Subject:

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

2012-04-14 Thread Sebastian Krebs
Am 14.04.2012 23:14, schrieb Marco Pivetta: 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 :) I was wondering about `class A { const CLASS = 'hello'; }` but that would cause

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

2012-04-14 Thread Kris Craig
On Sat, Apr 14, 2012 at 11:29 AM, John Crenshaw johncrens...@priacta.comwrote: Sent: Friday, April 13, 2012 3:39 PM On Fri, Apr 13, 2012 at 12:12 PM, John Crenshaw johncrens...@priacta.com wrote: On top of this, there's an argument that you're not addressing: most template

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

2012-04-14 Thread Sherif Ramadan
Let me say that I've been following this thread for some time now and what I'm seeing is a lot of poorly communicated ideas with very little thought and a lot of snappy retort. We can walk and chew gum at the same time.  Just because more immediate concerns exist doesn't mean that looking at

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

2012-04-14 Thread Kris Craig
On Sat, Apr 14, 2012 at 3:25 PM, Sherif Ramadan theanomaly...@gmail.comwrote: Let me say that I've been following this thread for some time now and what I'm seeing is a lot of poorly communicated ideas with very little thought and a lot of snappy retort. We can walk and chew gum at the

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

2012-04-14 Thread Lester Caine
Kris Craig wrote: Please review these things, *then *post a response. Thank you. If you want this SO badly, just fork a copy of PHP and implement it how you want it. That is at least the good thing to come out of moving the code management yet again ... if others want it as well they can

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

2012-04-14 Thread Anthony Ferrara
Kris, It's worth noting that there are already two other similar RFCs that have been proposed and other people have expressed interest in this idea.  Most of the opposition on this thread has come from 2 people, one of whom has been mostly posting hyperbolic claims and scare tactics.  There

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

2012-04-14 Thread Kris Craig
On Sat, Apr 14, 2012 at 4:28 PM, Lester Caine les...@lsces.co.uk wrote: Kris Craig wrote: Please review these things, *then *post a response. Thank you. If you want this SO badly, just fork a copy of PHP and implement it how you want it. That is at least the good thing to come out of

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

2012-04-14 Thread Kris Craig
On Sat, Apr 14, 2012 at 5:04 PM, Anthony Ferrara ircmax...@gmail.comwrote: Kris, It's worth noting that there are already two other similar RFCs that have been proposed and other people have expressed interest in this idea. Most of the opposition on this thread has come from 2 people,

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

2012-04-14 Thread Sherif Ramadan
Please review these things, *then *post a response.  Thank you. --Kris Alright, perhaps we should address one thing at a time. Since you feel you are repeating yourself I will alleviate repetition with manageable questions that are fair and concise. I start reading your RFC and the very

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

2012-04-14 Thread Kris Craig
On Sat, Apr 14, 2012 at 8:07 PM, Sherif Ramadan theanomaly...@gmail.comwrote: Please review these things, *then *post a response. Thank you. --Kris Alright, perhaps we should address one thing at a time. Since you feel you are repeating yourself I will alleviate repetition with

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

2012-04-14 Thread Anthony Ferrara
Kris, You do realize you just proved my point, right?  I said that, because only a small few people were actually participating in this thread, it would be completely disingenuous for one side or the other to claim to represent the majority opinion.  The fact that you stepped in does not

[PHP-DEV] Pear mailing list

2012-04-14 Thread Alan Knowles
Can someone help out with the pear-cvs mailing list, either Daniel or Gwynne has made some serious change in the setup of packages on github. This is causing the list to get spammed by ~ 1000 per day at present by commit messages from migrated changes. It's probably just best to block github

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

2012-04-14 Thread Kris Craig
On Sat, Apr 14, 2012 at 8:40 PM, Anthony Ferrara ircmax...@gmail.comwrote: Kris, You do realize you just proved my point, right? I said that, because only a small few people were actually participating in this thread, it would be completely disingenuous for one side or the other to

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

2012-04-14 Thread Anthony Ferrara
Kris, As discussed on other threads, PHPP files that are called directly from the webserver are handled by the SAPI handler and thus don't need any special identification. Except that they do. Right now, SAPI handlers just invoke PHP. So there would need to be some way of communicating the

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

2012-04-14 Thread Kris Craig
On Sat, Apr 14, 2012 at 10:16 PM, Anthony Ferrara ircmax...@gmail.comwrote: Kris, As discussed on other threads, PHPP files that are called directly from the webserver are handled by the SAPI handler and thus don't need any special identification. Except that they do. Right now, SAPI