Re: [PHP-DEV] PHP 7.4.0 Released!

2019-11-28 Thread Christoph M. Becker
On 28.11.2019 at 23:46, Nikita Popov wrote: > Who is running @php_official on Twitter? Sara? > I'd really prefer to retweet a > release announcement from there, but they always seem to be lagging days > behind. > > On Thu, Nov 28, 2019 at 6:36 PM Derick Rethans wrote: > >> The PHP development

[PHP-DEV] Re: PHP 7.4.0 Released!

2019-11-28 Thread Jan Ehrhardt
Congrats! Derick Rethans in php.internals (Thu, 28 Nov 2019 09:36:15 + (GMT)): >Release Announcement: >Downloads: >Windows downloads: >Changelog:

[PHP-DEV] Re: Opt-in "use function *;" for skipping check for function/const in alternate namespace

2019-11-28 Thread tyson andre
My previous message can be seen at https://news-web.php.net/php.internals/107887 (marc.info seems to show it as base 64 encoded text.) It links to a PR https://github.com/php/php-src/pull/4951 implementing this >A more cosmetic consideration is that the more generic the syntax looks, >the more

Re: [PHP-DEV] PHP 7.4.0 Released!

2019-11-28 Thread Nikita Popov
Who is running @php_official on Twitter? I'd really prefer to retweet a release announcement from there, but they always seem to be lagging days behind. On Thu, Nov 28, 2019 at 6:36 PM Derick Rethans wrote: > The PHP development team announces the immediate availability of PHP > 7.4.0. This

Re: [PHP-DEV] Re: Opt-in "use function *;" for skipping check for function/const in alternate namespace

2019-11-28 Thread Rowan Tommins
On 28/11/2019 18:52, tyson andre wrote: An opt-in mechanism is certainly easier to migrate to, but it would be a shame if every PHP file in 10 years time included a line like this: use function *; // don't know what this does, but apparently it's good for performance ¯\_(ツ)_/¯ I'm not sure

[PHP-DEV] Re: Opt-in "use function *;" for skipping check for function/const in alternate namespace

2019-11-28 Thread tyson andre
I implemented a PR for this if you wanted to know how this will work and how edge cases will be handled. https://github.com/php/php-src/pull/4951 > I was assuming that the ultimate goal was to remove (after deprecation) the > fallback to global namespace. > In that regard, the `use function *`

Re: [PHP-DEV] register_shutdown_function() not supports private methods

2019-11-28 Thread David Rodrigues
Em qui., 28 de nov. de 2019 às 14:13, Dan Ackroyd escreveu: > On Wed, 27 Nov 2019 at 23:33, David Rodrigues > wrote: > > > > Hi internals, > > > > I am using the register_shutdown_function() inside a class, and then I > have > > created a private method to be called during shutdown. I have

Re: [PHP-DEV] register_shutdown_function() not supports private methods

2019-11-28 Thread Dan Ackroyd
On Wed, 27 Nov 2019 at 23:33, David Rodrigues wrote: > > Hi internals, > > I am using the register_shutdown_function() inside a class, and then I have > created a private method to be called during shutdown. I have noted that if > the method is public it works, but private does not. > > This

Re: [PHP-DEV] Opt-in "use function *;" for skipping check for function/const in alternate namespace

2019-11-28 Thread Claude Pache
> Le 28 nov. 2019 à 12:56, Rowan Tommins a écrit : > > On Thu, 28 Nov 2019 at 11:01, Claude Pache wrote: >> I think it is better to keep the language as regular as possible, and > consider that every non-fully-qualified name is relative to the current > namespace, unless there is an explicit

Re: [PHP-DEV] Opt-in "use function *;" for skipping check for function/const in alternate namespace

2019-11-28 Thread Rowan Tommins
On Thu, 28 Nov 2019 at 11:01, Claude Pache wrote: > I think it is better to keep the language as regular as possible, and consider that every non-fully-qualified name is relative to the current namespace, unless there is an explicit `use` declaration that says otherwise That's already false, and

Re: [PHP-DEV] Opt-in "use function *;" for skipping check for function/const in alternate namespace

2019-11-28 Thread Claude Pache
> Le 28 nov. 2019 à 10:35, Rowan Tommins a écrit : > > On Thu, 28 Nov 2019 at 00:02, tyson andre wrote: > >> - Due to the absence of function autoloading (not supported in php to >> performance overhead), functions outside the global scope are rare in >> practice. >> > > > If this is a

Re: [PHP-DEV] Opt-in "use function *;" for skipping check for function/const in alternate namespace

2019-11-28 Thread Robert Hickman
> > What are your thoughts about syntax such as the following, similar to the > syntax for Java (only for use of functions/constants from the root scope) > > namespace My\NS; > use function *; > use const *; > // can use functions/constants from namespaces that aren't the global > namespace to

[PHP-DEV] PHP 7.4.0 Released!

2019-11-28 Thread Derick Rethans
The PHP development team announces the immediate availability of PHP 7.4.0. This release marks the fourth feature update to the PHP 7 series. PHP 7.4.0 comes with numerous improvements and new features such as: - Typed Properties - Arrow Functions - Limited Return Type Covariance and Argument

Re: [PHP-DEV] Opt-in "use function *;" for skipping check for function/const in alternate namespace

2019-11-28 Thread Rowan Tommins
On Thu, 28 Nov 2019 at 00:02, tyson andre wrote: > - Due to the absence of function autoloading (not supported in php to > performance overhead), functions outside the global scope are rare in > practice. > If this is a valid justification, perhaps we should do the opposite of the "deprecate

Re: [PHP-DEV] Opt-in "use function *;" for skipping check for function/const in alternate namespace

2019-11-28 Thread Benjamin Eberlei
On Thu, Nov 28, 2019 at 1:02 AM tyson andre wrote: > > What are your thoughts about syntax such as the following, similar to the > syntax for Java (only for use of functions/constants from the root scope) > > namespace My\NS; > use function *; > use const *; > // can use functions/constants