Re: [PHP-DEV] [RFC][Vote] Typed Properties

2016-05-26 Thread flaupretre
Hi Dmitry, > > I thought about a different approach :) > > > - not-nullable typed properties must be explicitly initialized (or > should be initialized implicitly by corresponding types, e.g. "int" > should get default value int(0). ...) > > - nullable typed properties may be implicitly initia

Re: [PHP-DEV] Converting an 'old' PHP 5.x extension to PHP 7

2015-12-10 Thread flaupretre
many arguments to function > ‘zend_hash_get_current_key_ex’" > > Googling won't really help since most results return posts of people > who > fail to install modules. > > How can I continue with making this work? Any good (up-to-date) > resources? > An IRC chann

Re: [PHP-DEV] Class Friendship in PHP

2015-12-10 Thread flaupretre
Hi Dustin, - Mail original - > De: "Dustin Wheeler" > > In my opinion, class friendship is explicit. I reach for this feature > when I need to say, "Hey, you two objects; one of you is going to > know > more than the rest of my system knows about this other object. I'm > doing this so th

Re: [PHP-DEV] Re: PHP 7.0.1 scheduling

2015-12-08 Thread flaupretre
Hi, - Mail original - > De: "Anatol Belski" > > - 7.0.1RC1 on 10th December By the way, could someone merge https://github.com/php/php-src/pull/1602 for RC1 ? Thanks François -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Class Friendship in PHP

2015-12-08 Thread flaupretre
Hi, Thanks for this interesting and well-documented message. When looking at the history about class friendship, you may have seen that the concept was globally rejected in favor of Guilherme's project of 'package-privacy'. I personnally think friend classes are a different and more powerful

Re: [PHP-DEV] Re: [Proposal] Extend support for negative string offsets

2015-07-23 Thread flaupretre
Hi, > De: "Christoph Becker" > > That may be useful as well, but what about the respective mbstring and > grapheme functions? At least these should be improved as well, but I'm > not sure if that can be done in an efficient manner. iconv, mb, and grapheme functions need to be modified the same

Re: [PHP-DEV] RFE to allow dirname($foo, 2)

2015-07-22 Thread flaupretre
Hi, > De: "Remi Collet" > > See https://bugs.php.net/bug.php?id=70112 > > As this a very small self-contained change, I don't think it needs a RFE. +1 for the feature, but not sure it can go to 7.0. Regards François -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit

[PHP-DEV] Extending support for negative string offsets

2015-07-21 Thread flaupretre
Hi, I am starting a PR (https://github.com/php/php-src/pull/1431) to add support for negative string offsets (counting from the end of the container string) where they could and, IMHO, should be supported. The already-published commits add support for negative offsets in '$string{$offset}' exp

[PHP-DEV] Re: PHP 7 - install-pear-nozlib.phar - ereg_replace() error

2015-06-18 Thread flaupretre
Hi Ferenc, - Mail original - De: "Ferenc Kovacs" > it seems I either forgot to push or got rejected for not being up-to-date. > I've just pushed the fixed version now, could you pull and retry? Well, not perfect yet. The ereg_replace() error is gone but... Installing PEAR environm

[PHP-DEV] PHP 7 - install-pear-nozlib.phar - ereg_replace() error

2015-06-18 Thread flaupretre
Hi, Quoting Ferenc's message about pear install error : > until this is fixed we have a "custom" install-pear-nozlib.phar built and > added to our repo, so instead of downloading the incompatible installer, we > use one with the fixes already present. > this is a hack/workaround for the time bein

Re: [PHP-DEV] Soft-reserve "void" class name

2015-05-21 Thread flaupretre
Hi, > De: "Nikita Popov" > > For PHP 7 we soft-reserved a number of class names [1] like "numeric", so > that we have the ability to introduce them as typehints in a 7.x release. > "Soft" here means that we only document these names as being reserved and > don't throw an error when they're used.