Re: [PHP-DEV] recommended .gitignore for PHP/PECL extensions

2015-09-25 Thread François Laupretre
Le 25/09/2015 21:10, j adams a écrit : I have made good progress on a PHP extension and I'd like to post it on github to get some review and help from some others. The folder has quite a few files and I'm hoping to avoid putting anything in git that doesn't need to be there. I see that php 5.6 h

Re: [PHP-DEV] recommended .gitignore for PHP/PECL extensions

2015-09-25 Thread Michael Wallner
On 25 Sep 2015 21:10, "j adams" wrote: > > I have made good progress on a PHP extension and I'd like to post it on > github to get some review and help from some others. The folder has quite a > few files and I'm hoping to avoid putting anything in git that doesn't need > to be there. > > I see th

Re: [PHP-DEV] Implementing Generics, and none scalar default properties.

2015-09-25 Thread Stanislav Malyshev
Hi! > I'm thinking primarily of the benefit to base or abstract classes. For Both can have constructors. > base classes which expect certain properties be set, they are exposed to > the danger of remaining unset if the derived class overrides the > constructor without calling the parent. You s

Re: [PHP-DEV] Implementing Generics, and none scalar default properties.

2015-09-25 Thread Dominic Grostate
I'm thinking primarily of the benefit to base or abstract classes. For base classes which expect certain properties be set, they are exposed to the danger of remaining unset if the derived class overrides the constructor without calling the parent. This solution is analogous to: class Foo {

Re: [PHP-DEV] Implementing Generics, and none scalar default properties.

2015-09-25 Thread Stanislav Malyshev
Hi! > ability to set default values of properties to instances of objects or > calls to static methods or functions (expressions in general). That is what constructors are for. I.e. I can understand initializing static properties (though it gives a lot of potential for weird race conditions) but

Re: [PHP-DEV] [RFC] [VOTE] Short Closures

2015-09-25 Thread Bishop Bettini
Hi, On Mon, Sep 21, 2015 at 9:59 PM, Bob Weinand wrote: > So, before I start the vote, just two quick notes: > I've added two notes about the statement syntax and the single variable > use. > Though a few people complained, I'm not switching to the ==> operator, as > I noticed many people expect

[PHP-DEV] Re: RFC: Generics

2015-09-25 Thread Stephen Coakley
On 09/24/2015 03:43 PM, Dominic Grostate wrote: Hi Ben & Internals, I spent most of today and yesterday just getting used to the parser language. I was able to implement the basic syntax on most of the constructs, just to get a partial proof of concept going. https://github.com/orolyn/php-src/c

[PHP-DEV] recommended .gitignore for PHP/PECL extensions

2015-09-25 Thread j adams
I have made good progress on a PHP extension and I'd like to post it on github to get some review and help from some others. The folder has quite a few files and I'm hoping to avoid putting anything in git that doesn't need to be there. I see that php 5.6 has this .gitignore file: http://git.php.n

Re: [PHP-DEV] Implementing Generics, and none scalar default properties.

2015-09-25 Thread Dominic Grostate
Hi, I see what you mean with static properties, that would be more difficult. I can answer on non-static however. * When will $p2 be initialized, which properties can it access? - On class instantiation. It won't have access to $this, because the object won't have been created yet. It will hav

Re: [PHP-DEV] zend_parse_parameters changes not fully documented in phpng-upgrading, PR to fix existing tools

2015-09-25 Thread Johannes Schlüter
Hi, On Wed, 2015-09-23 at 15:39 -0500, Sean DuBois wrote: > C.) Has there ever been a conversation about improving extension building so > that authors > don't have to go out of their way to catch these things? I would really like > to see phpize > kick out a Makefile that in the process of build

Re: [PHP-DEV] Implementing Generics, and none scalar default properties.

2015-09-25 Thread Johannes Schlüter
Hi, Would be good to split complete different subjects to different threads anyways: On Wed, 2015-09-23 at 15:53 +0100, Dominic Grostate wrote: > the > ability to set default values of properties to instances of objects or > calls to static methods or functions (expressions in general). This cau

[PHP-DEV] Benchmark Results for PHP Master 2015-09-25

2015-09-25 Thread lp_benchmark_robot
Results for project php-src-nightly, build date 2015-09-25 05:12:40+03:00 commit: 5902af506a0bf44f5470835e6da66c47a7e0802e revision_date: 2015-09-25 02:20:31+03:00 environment:Haswell-EP cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping 2, LLC 45 MB

FW: [PHP-DEV] Re: [PATCH] Tick functions (on C level) with state

2015-09-25 Thread Anatol Belski
FYI the patch http://pastebin.com/wVymMAdZ , forwarding as seems my mail filters put it into the internals folder while there was no internals in the "to" list. Regards Anatol -Original Message- From: Anatol Belski [mailto:anatol@belski.net] Sent: Thursday, September 24, 2015 6:4

RE: [PHP-DEV] [RFC] [VOTE] Short Closures

2015-09-25 Thread Anatol Belski
Hi, > -Original Message- > From: Bob Weinand [mailto:bobw...@hotmail.com] > Sent: Tuesday, September 22, 2015 4:00 AM > To: PHP internals > Subject: [PHP-DEV] [RFC] [VOTE] Short Closures > > Hey, > > Thanks for all your feedback in the discussion thread! > > So, before I start the vote