[PHP-DEV] Re: Function autoloading

2013-08-31 Thread Vartolomei Nicolae
So you say you will create a file for every function you want to support autoloading? As I already asked, tell us about realworld use case, for example where this could improve say big projects like Symfony or ZF. There is no logic to add this functionality just because we can. kindly,

Re: [PHP-DEV] [RFC] Argument unpacking

2013-08-31 Thread Nikita Popov
On Fri, Aug 30, 2013 at 11:50 PM, Stas Malyshev smalys...@sugarcrm.comwrote: If staying consistent with foreach is not wanted (or this is not How calling a function can be consistent with foreach? Those are different things. Calling a function should be consistent with all other cases of

Re: [PHP-DEV] More powerful (and backward compatible) API of random number generator functions

2013-08-31 Thread Marc Bennewitz
Am 31.08.2013 03:17, schrieb Bryan C. Geraghty: First, I want to ask: Does anyone else think we should draw a distinction between RNGs and CSPRNGs? I ask this because the OpenSSL option here is the only CSPRNG; The others are trivially breakable and should not be used for cryptographic

[PHP-DEV] Re: Always set return_value_ptr?

2013-08-31 Thread Nikita Popov
On Tue, Aug 27, 2013 at 11:40 AM, Nikita Popov nikita@gmail.com wrote: On Sat, Aug 3, 2013 at 8:16 PM, Nikita Popov nikita@gmail.com wrote: Hi internals! Is there any particular reason why we only pass return_value_ptr to internal functions if they have the ACC_RETURN_REFERENCE flag

Re: [PHP-DEV] Re: Always set return_value_ptr?

2013-08-31 Thread Terry Ellison
On 31/08/13 14:13, Nikita Popov wrote: Is there any particular reason why we only pass return_value_ptr to internal functions if they have the ACC_RETURN_REFERENCE flag set? Why can't we always provide the retval ptr, even for functions that don't return by reference? This would allow

Re: [PHP-DEV] [RFC] Argument unpacking

2013-08-31 Thread Adam Harvey
On 31 August 2013 03:21, Nikita Popov nikita@gmail.com wrote: This is very special use case to be hidden in library functions, I don't think we need to have language syntax specially directed at that, at the cost of making it overall more complex and hard to understand. I can see what add

Re: [PHP-DEV] [RFC] Argument unpacking

2013-08-31 Thread Adam Harvey
On 30 August 2013 08:23, Nikita Popov nikita@gmail.com wrote: The syntax it introduces looks as follows: $db-query($query, ...$params); Somebody was going to do this, and it's going to be me. Sorry. We were doing so well. I don't like the ellipsis. I could just about deal with it for

[PHP-DEV] Re: Function autoloading

2013-08-31 Thread Sebastian Krebs
2013/8/31 Vartolomei Nicolae nvartolo...@gmail.com So you say you will create a file for every function you want to support autoloading? I already _have_ create files for functions of a namespace... Closed source. As I already asked, tell us about realworld use case, for example where

[PHP-DEV] windows.php.net

2013-08-31 Thread Johannes Schlüter
Hi, there has been some chatter about windows.php.net, which drives me to the question: Do we need that site? Why and for what? Few data items: * The news on w.p.n are not really maintained and provide outdated info. * Downloads are not using our 90 world-wide mirrors but a

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Kris Craig
On Sat, Aug 31, 2013 at 1:05 PM, Johannes Schlüter johan...@schlueters.dewrote: Hi, there has been some chatter about windows.php.net, which drives me to the question: Do we need that site? Why and for what? Few data items: * The news on w.p.n are not really maintained and provide

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Johannes Schlüter
On Sat, 2013-08-31 at 13:22 -0700, Kris Craig wrote: The downloads section of windows.php.net is regularly updated. It currently hosts 5.3.3, released 10 days ago. The snaps and news are a bit outdated, but I'd say the solution to that is to encourage more participation, not shut it down

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Nikita Popov
On Sat, Aug 31, 2013 at 10:05 PM, Johannes Schlüter johan...@schlueters.dewrote: My idea would be to * shut down most of windows.php.net * Provide downloads via our mirrors. This might need work on a nice downloads page, probably some configuration to make sure we

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Johannes Schlüter
On Sat, 2013-08-31 at 22:38 +0200, Nikita Popov wrote: The Windows site also hosts DLLs for PECL: http://windows.php.net/downloads/pecl/ That should also be put in some prominent location, because right now I don't think it's even linked from anywhere. Instead the website has a notice that

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Ferenc Kovacs
On Sat, Aug 31, 2013 at 10:05 PM, Johannes Schlüter johan...@schlueters.dewrote: Hi, there has been some chatter about windows.php.net, which drives me to the question: Do we need that site? Why and for what? Few data items: * The news on w.p.n are not really maintained and provide

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Jan Ehrhardt
Curiously enough Pierre just said this in php.pecl.dev (Thu, 29 Aug 2013 19:59:01 +0200): You can also get some here: http://windows.php.net/downloads/pecl/ snaps or releases which is about to be the place where pecl official binaries will be always be available, with links from pecl.php.net.

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Ferenc Kovacs
PS. The beta for php.net has its problems as well. There is no equivalent (yet?) for http://www.php.net/downloads.php I switched back to the old site because of this. http://www.php.net/downloads.php?beta=1 ? maybe the link is missing to that page? -- Ferenc Kovács @Tyr43l -

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Jan Ehrhardt
Ferenc Kovacs in php.internals (Sat, 31 Aug 2013 23:18:09 +0200): PS. The beta for php.net has its problems as well. There is no equivalent (yet?) for http://www.php.net/downloads.php I switched back to the old site because of this. http://www.php.net/downloads.php?beta=1 ? maybe the link is

Re: [PHP-DEV] [RFC] Argument unpacking

2013-08-31 Thread Sara Golemon
Big +1 from me, though as Stas pointed out, multiple unpacks in a single call don't really work with PHP parameter typing, so I'd make that use an error. On Sat, Aug 31, 2013 at 10:57 AM, Adam Harvey ahar...@php.net wrote: On 30 August 2013 08:23, Nikita Popov nikita@gmail.com wrote: The

[PHP-DEV] Re: Function autoloading

2013-08-31 Thread Vartolomei Nicolae
On Saturday, August 31, 2013 at 9:03 PM, Sebastian Krebs wrote: I already _have_ create files for functions of a namespace... Closed source. Can we take a look at them as an example? Maybe we can give you some advice how to refactor this code :) Not everything can be found in the 5 most

Re: [PHP-DEV] Re: Function autoloading

2013-08-31 Thread Ferenc Kovacs
The lack of logic is: Why is it actually missing? Why humans don’t have one leg more, on head? I really want to look at an example for this. Looks like you are the only one who needs this. Oh, is OOP that bad for you? Also constant autoloading looks so bad, I want to see an example of

[PHP-DEV] Re: Function autoloading

2013-08-31 Thread Vartolomei Nicolae
personally Ithink it would be nice if we could provide a way for const/function autoloading. So you will create files for constants? One file with a single line defining a constant? Did I understood something wrong? kindly, nvartolomei -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] Re: Function autoloading

2013-08-31 Thread Michael Dowling
Python packages often place convenience functions (e.g., factory methods) in __init__.py files. There's nothing wrong with that. It would be great to be able to do something similar in PHP. Sure beats creating classes called Util. Thanks, Michael On Aug 31, 2013, at 2:57 PM, Vartolomei Nicolae

Re: [PHP-DEV] Re: Function autoloading

2013-08-31 Thread Florin Patan
On Sun, Sep 1, 2013 at 12:36 AM, Vartolomei Nicolae nvartolo...@gmail.com wrote: personally Ithink it would be nice if we could provide a way for const/function autoloading. So you will create files for constants? One file with a single line defining a constant? Did I understood something

Re: [PHP-DEV] Re: Function autoloading

2013-08-31 Thread Anthony Ferrara
All, There has been a lot of discussion unto the merit of this feature. That's fine. What I'd really like to know before proposing this is what can be improved in this RFC. For example: someone (Stas) brought up that it was weird that all three types (Class, Function, Constant) are served by a

[PHP-DEV] Re: Function autoloading

2013-08-31 Thread Ferenc Kovacs
On Sun, Sep 1, 2013 at 12:36 AM, Vartolomei Nicolae nvartolo...@gmail.comwrote: personally Ithink it would be nice if we could provide a way for const/function autoloading. So you will create files for constants? One file with a single line defining a constant? Did I understood something

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Pierre Joye
On Sat, Aug 31, 2013 at 10:05 PM, Johannes Schlüter johan...@schlueters.de wrote: Hi, there has been some chatter about windows.php.net, which drives me to the question: Do we need that site? Yes. Totally and definitively yes. Why and for what? Few data items: * The news on w.p.n

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Pierre Joye
On Sat, Aug 31, 2013 at 11:00 PM, Jan Ehrhardt php...@ehrhardt.nl wrote: Curiously enough Pierre just said this in php.pecl.dev (Thu, 29 Aug 2013 19:59:01 +0200): You can also get some here: http://windows.php.net/downloads/pecl/ snaps or releases which is about to be the place where pecl

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Pierre Joye
On Sat, Aug 31, 2013 at 10:57 PM, Ferenc Kovacs tyr...@gmail.com wrote: I could be convinced that we need a dedicated site/subdomain for our windows users, but I think that it should be conform our existing standards: - the production code can be changed through commits to the git repo,

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Johannes Schlüter
On Sun, 2013-09-01 at 01:50 +0200, Pierre Joye wrote: Why and for what? Few data items: * The news on w.p.n are not really maintained and provide outdated info. I take the blame for that. We have been too busy with (many) other (also non windows specific) QA tasks. The

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Ferenc Kovacs
On Sun, Sep 1, 2013 at 1:58 AM, Pierre Joye pierre@gmail.com wrote: On Sat, Aug 31, 2013 at 10:57 PM, Ferenc Kovacs tyr...@gmail.com wrote: I could be convinced that we need a dedicated site/subdomain for our windows users, but I think that it should be conform our existing standards:

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Pierre Joye
On Sun, Sep 1, 2013 at 2:25 AM, Johannes Schlüter johan...@schlueters.de wrote: On Sun, 2013-09-01 at 01:50 +0200, Pierre Joye wrote: Why and for what? Few data items: * The news on w.p.n are not really maintained and provide outdated info. I take the blame for that. We

Re: [PHP-DEV] [RFC] Argument unpacking

2013-08-31 Thread Pierre Joye
hi Nikita! On Fri, Aug 30, 2013 at 5:23 PM, Nikita Popov nikita@gmail.com wrote: Hi internals! This RFC proposes to add a syntax for argument unpacking: https://wiki.php.net/rfc/argument_unpacking Basically, this is the complement of the variadics RFC: It is not about declaring

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Johannes Schlüter
lol. (sorry for top posting) On Sun, 2013-09-01 at 03:01 +0200, Pierre Joye wrote: On Sun, Sep 1, 2013 at 2:25 AM, Johannes Schlüter johan...@schlueters.de wrote: On Sun, 2013-09-01 at 01:50 +0200, Pierre Joye wrote: Why and for what? Few data items: * The news on w.p.n are

Re: [PHP-DEV] windows.php.net

2013-08-31 Thread Yasuo Ohgaki
Guys, Let be more constructive. We are discussing to make PHP better, aren't we? Regards, -- Yasuo Ohgaki yohg...@ohgaki.net