Re: [PHP-DEV] Compatibility library for extensions

2015-11-10 Thread Thomas Hruska
On 11/10/2015 7:53 AM, François Laupretre wrote: Hi, Some of you may be interested by a project I just released at https://github.com/flaupretre/pecl-compat. This is a compatibility library. The objective is to minimize the pain of making a PHP extension compatible with both PHP 5 and 7, while

[PHP-DEV] Re: Safe Temporary Cleanup on Exception (Variable Liveness)

2015-11-10 Thread Xinchen Hui
On Wed, Nov 11, 2015 at 11:10 AM, Xinchen Hui wrote: > Hey: > > On Tue, Nov 10, 2015 at 7:29 PM, Dmitry Stogov wrote: > >> >> >> On Tue, Nov 10, 2015 at 1:42 PM, Nikita Popov >> wrote: >> >>> On Tue, Nov 10, 2015 at 10:53 AM, Dmitry Stogov wrote: >>> Hi, Please take a look into

[PHP-DEV] Re: Safe Temporary Cleanup on Exception (Variable Liveness)

2015-11-10 Thread Xinchen Hui
Hey: On Tue, Nov 10, 2015 at 7:29 PM, Dmitry Stogov wrote: > > > On Tue, Nov 10, 2015 at 1:42 PM, Nikita Popov > wrote: > >> On Tue, Nov 10, 2015 at 10:53 AM, Dmitry Stogov wrote: >> >>> Hi, >>> >>> Please take a look into >>> https://gist.github.com/dstogov/43eaa3f3b68583877322 >>> >>> This i

Re: [PHP-DEV] Re: Resource typehint and return type

2015-11-10 Thread Ben Scholzen 'DASPRiD'
On 11.11.2015 03:21, Andrea Faulds wrote: The reason for this is that the resource type is an anachronism from an age in which PHP did not have objects, yet still needed to make certain types of data opaque. The resource type is a type that exists only to shuffle around C pointers between interna

[PHP-DEV] Re: Resource typehint and return type

2015-11-10 Thread Andrea Faulds
Hi Ben Ben Scholzen 'DASPRiD' wrote: Hi guys, I just poked up an RFC and a patch for resource typehints and return types. I'd really like to hear your thoughts about it! RFC: https://wiki.php.net/rfc/resource_typehint Patch: https://github.com/php/php-src/pull/1631 Anthony's Scalar Type Hin

Re: [PHP-DEV] Null bytes in anonymous class names

2015-11-10 Thread Steven Hilder
On Wed, 11 Nov 2015 01:06:32, Andrea Faulds wrote: This is mostly tangential, but I note that we use "{closure}" as the name of anonymous functions. So, maybe it should be "{class}@..." for anonymous classes? It's at least semi-consistent... Hi Andrea, Only slightly tangential - I'm intere

[PHP-DEV] Resource typehint and return type

2015-11-10 Thread Ben Scholzen 'DASPRiD'
Hi guys, I just poked up an RFC and a patch for resource typehints and return types. I'd really like to hear your thoughts about it! RFC: https://wiki.php.net/rfc/resource_typehint Patch: https://github.com/php/php-src/pull/1631 Cheers, -- Ben Scholzen 'DASPRiD' Community Review Team Member

RE: [PHP-DEV] PHP 7 RTM date

2015-11-10 Thread Anatol Belski
> -Original Message- > From: Rasmus Lerdorf [mailto:ras...@lerdorf.com] > Sent: Tuesday, November 10, 2015 1:50 AM > To: David Zuelke ; Andi Gutmans > Cc: Anatol Belski ; Stanislav Malyshev > ; internals@lists.php.net; Kalle Sommer Nielsen > ; Ferenc Kovacs > Subject: Re: [PHP-DEV] PHP

Re: [PHP-DEV] Null bytes in anonymous class names

2015-11-10 Thread Andrea Faulds
Hi Derick, Derick Rethans wrote: I would suggest replacing it with something else. As I am making this work for Xdebug, I really need to ship the full name to the IDE so that they can later do look-ups on anonymous class properties, and with the \0 the IDEs seem to fuck this up. I suggest using

Re: [PHP-DEV] PHP 7 RTM date

2015-11-10 Thread Andrea Faulds
Hey Andi, Andi Gutmans wrote: Btw, do we want to do something special on php.net ? Front page? Not the sexiest site as-is so maybe gives us an excuse to spice up the front page? 7 is the first new major version in more than a decade, it'd be a shame if we didn't capitalise

Re: [PHP-DEV] PHP 7 RTM date

2015-11-10 Thread Andi Gutmans
> On Nov 10, 2015, at 8:53 AM, David Zuelke wrote: > > Sure: http://phpversions.info/paas-hosting/ > > The default PHP version in the absence of any explicit declaration on Heroku > will remain 5.6.latest for a while, but if you have a composer.json with a > bunch of requirements for package "

Re: [PHP-DEV] Package / namespace visibility

2015-11-10 Thread guilhermebla...@gmail.com
Hi, I am currently working on class visibility support aiming PHP 7.1. Spoke with Derick to give me some north to finalize the patch and write the RFC. Your wishes are being listened, my friend! =) On Nov 10, 2015 19:25, "Karoly Negyesi" wrote: > Hi, > > As one of the Drupal core developers I n

[PHP-DEV] Package / namespace visibility

2015-11-10 Thread Karoly Negyesi
Hi, As one of the Drupal core developers I need to say: we would *love* to have some sort of cross class visibility. Visibility within a namespace looks like a very nice solution to this. May I recommend adding nspublic to public/private/protected? Or a similar word but the same meaning. Thanks,

[PHP-DEV] PHP 7 Segmentation fault

2015-11-10 Thread Frank M. Kromann
Hello Everyone, I have a large application that segfaults on spl autoload function. I have not had the time yet to create a small script that can be used to reproduce the error, but it looks to be similar to the one reported for PHPUnit. I'm using the autolaoder script from composer and I ha

Re: [PHP-DEV] Null bytes in anonymous class names

2015-11-10 Thread Steven Hilder
On Mon, 09 Nov 2015 16:48:57, Leigh wrote: On 9 November 2015 at 15:27, Steven Hilder Can you share your patch? See https://github.com/php/php-src/compare/master...stevenhilder:hide-anon-class-suffix Feedback very welcome :) It should be possible to return the sanitised name without remo

Re: [PHP-DEV] PHP7 / foreach / references / ugly code / discrepancy to PHP 5.6

2015-11-10 Thread Adam Harvey
Hey Nikita, On 10 November 2015 at 11:45, Nikita Popov wrote: > This is a bug in PHP 5, which has been fixed in PHP 7 as a side-effect of > other changes. The new behavior is correct. This issue is tracked at > https://bugs.php.net/bug.php?id=70857. Are there any other variations on what express

Re: [PHP-DEV] PHP7 / foreach / references / ugly code / discrepancy to PHP 5.6

2015-11-10 Thread Nikita Popov
On Tue, Nov 10, 2015 at 5:48 PM, Philip Hofstetter < phofstet...@sensational.ch> wrote: > Hi, > > I'm having a cause of slightly ugly code that runs differently from PHP 5.6 > to PHP 7 and I don't think this difference is documented, nor expected. As > I'm not sure whether this is an intended chan

Re: [PHP-DEV] PHP7 / foreach / references / ugly code / discrepancy to PHP 5.6

2015-11-10 Thread Bishop Bettini
On Tue, Nov 10, 2015 at 11:48 AM, Philip Hofstetter < phofstet...@sensational.ch> wrote: > Hi, > ...snip... > I guess this is related to > > http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.foreach.by-value > or > > http://php.net/manual/en/migration70.incompatible.p

[PHP-DEV] Re: Safe Temporary Cleanup on Exception (Variable Liveness)

2015-11-10 Thread Dmitry Stogov
I've committed unrelated and obvious parts (without semantic changes). The updated and extended patch now is much more clean https://gist.github.com/dstogov/43eaa3f3b68583877322 Anyway, it's still incomplete. Thanks. Dmitry. On Tue, Nov 10, 2015 at 2:29 PM, Dmitry Stogov wrote: > > > On Tue, No

Re: [PHP-DEV] PHP7 / foreach / references / ugly code / discrepancy to PHP 5.6

2015-11-10 Thread Martin Amps
Here’s a 3v4l demonstrating this too: https://3v4l.org/OXAd3 > On Nov 10, 2015, at 8:48 AM, Philip Hofstetter > wrote: > > Hi, > > I'm having a cause of slightly ugly code that runs differently from PHP 5.6 > to PHP 7 and I don't think this difference is documented,

Re: [PHP-DEV] PHP 7 RTM date

2015-11-10 Thread David Zuelke
On 10.11.2015, at 10:26, Lester Caine wrote: > > On 10/11/15 00:49, Rasmus Lerdorf wrote: >>> November 30 is Cyber Monday, where people are either a) focused on maxing out their credit cards on every possible e-commerce site, or b) unable to roll out PHP 7 because their cust

[PHP-DEV] PHP7 / foreach / references / ugly code / discrepancy to PHP 5.6

2015-11-10 Thread Philip Hofstetter
Hi, I'm having a cause of slightly ugly code that runs differently from PHP 5.6 to PHP 7 and I don't think this difference is documented, nor expected. As I'm not sure whether this is an intended change or not, I'm asking here firstr before making a bug report. The code in question is $b =

[PHP-DEV] Benchmark Results for PHP Master 2015-11-10

2015-11-10 Thread lp_benchmark_robot
Results for project PHP master, build date 2015-11-10 05:25:59+02:00 commit: 7bc6361294d5edecf4f5605c810a4c36145c1d91 revision date: 2015-11-09 23:42:12+00:00 environment:Haswell-EP cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping 2, LLC 45 MB mem

[PHP-DEV] Compatibility library for extensions

2015-11-10 Thread François Laupretre
Hi, Some of you may be interested by a project I just released at https://github.com/flaupretre/pecl-compat. This is a compatibility library. The objective is to minimize the pain of making a PHP extension compatible with both PHP 5 and 7, while allowing to keep a single code tree. Of cour

[PHP-DEV] Re: Safe Temporary Cleanup on Exception (Variable Liveness)

2015-11-10 Thread Dmitry Stogov
On Tue, Nov 10, 2015 at 1:42 PM, Nikita Popov wrote: > On Tue, Nov 10, 2015 at 10:53 AM, Dmitry Stogov wrote: > >> Hi, >> >> Please take a look into >> https://gist.github.com/dstogov/43eaa3f3b68583877322 >> >> This is variation on Bob's idea about variable liveness. >> The patch is incomplete.

[PHP-DEV] Re: Safe Temporary Cleanup on Exception (Variable Liveness)

2015-11-10 Thread Nikita Popov
On Tue, Nov 10, 2015 at 10:53 AM, Dmitry Stogov wrote: > Hi, > > Please take a look into > https://gist.github.com/dstogov/43eaa3f3b68583877322 > > This is variation on Bob's idea about variable liveness. > The patch is incomplete. Liveness construction is still naive. However, > all tests are pa

Re: [PHP-DEV] PHP 7 RTM date

2015-11-10 Thread Lester Caine
On 10/11/15 09:37, Kingsquare.nl - Robin Speekenbrink wrote: > With the advent of a wider variety of (container based) hosting solutions > (i.e. Heroku (https://devcenter.heroku.com/changelog-items/679) and > dokku-esque providers) and i.e. Docker providing the latest RC's via > 'official' images (

[PHP-DEV] Re: Safe Temporary Cleanup on Exception (Variable Liveness)

2015-11-10 Thread Dmitry Stogov
BTW: I think, part of this patch (without zend_check_live_ranges) may be good enough, as a first step. It should keep the current PHP-5/7.0 behavior with new data structures. Thanks. Dmitry. On Tue, Nov 10, 2015 at 12:53 PM, Dmitry Stogov wrote: > Hi, > > Please take a look into > https://gist.

[PHP-DEV] Safe Temporary Cleanup on Exception (Variable Liveness)

2015-11-10 Thread Dmitry Stogov
Hi, Please take a look into https://gist.github.com/dstogov/43eaa3f3b68583877322 This is variation on Bob's idea about variable liveness. The patch is incomplete. Liveness construction is still naive. However, all tests are passed. Ranges are represented by start/end/variable cartages. (I suppos

Re: [PHP-DEV] PHP 7 RTM date

2015-11-10 Thread Kingsquare.nl - Robin Speekenbrink
2015-11-10 10:26 GMT+01:00 Lester Caine : > On 10/11/15 00:49, Rasmus Lerdorf wrote: > >> November 30 is Cyber Monday, where people are either > >> > > >> > a) focused on maxing out their credit cards on every possible > e-commerce site, or > >> > b) unable to roll out PHP 7 because their customer

Re: [PHP-DEV] PHP 7 RTM date

2015-11-10 Thread Lester Caine
On 10/11/15 00:49, Rasmus Lerdorf wrote: >> November 30 is Cyber Monday, where people are either >> > >> > a) focused on maxing out their credit cards on every possible e-commerce >> > site, or >> > b) unable to roll out PHP 7 because their customers are busy with a) >> > >> > At least at Heroku