Re: [PHP-DEV] Function getdir() accidentally exists

2021-04-06 Thread Sara Golemon
On Tue, Apr 6, 2021 at 5:04 PM Rowan Tommins wrote: > Because the PHP function didn't match the C function name, > this got translated to a function *alias* in PHP 4 [1]: > Curious, since PHP_NAMED_FE *did* exist in this revision that Ze'ev didn't choose to use that macro. Mid 1999 though, so I i

[PHP-DEV] Function getdir() accidentally exists

2021-04-06 Thread Rowan Tommins
Hi all, Following up this Stack Overflow question https://stackoverflow.com/q/66854655/157957 and accompanying bug report https://bugs.php.net/bug.php?id=80914 I have discovered the odd fact that a function was accidentally added to PHP 8.0: getdir() is now an alias for dir() Well, actually

[PHP-DEV] Update on git.php.net incident

2021-04-06 Thread Nikita Popov
Hi everyone, I would like to provide an update regarding the git.php.net security incident. To briefly summarize the most important information: * We no longer believe the git.php.net server has been compromised. However, it is possible that the master.php.net user database leaked. * master.php

Re: [PHP-DEV] Re: [RFC] Autoloader Classmap

2021-04-06 Thread Matt Fonda
Hi Mark, I'm a fan of adding an easy and performant way to implement classmap-based autolading, but weary of adding yet another way to autoload. If it would be possible to do so without negating the performance improvements, I'd suggest having this work in conjunction with the existing spl_autoloa

Re: [PHP-DEV] Path forward for class_exists with different targeted PHP version implementations

2021-04-06 Thread Mike Schinkel
> On Apr 5, 2021, at 9:00 PM, Jesse Rushlow wrote: > > Sure thing - > > In Symfony's MakeBundle we have a command "php bin/console make:command". > This ultimately generates a "App\Console\XyzUserlandCommand::class" that > allows the developer to customize in order to perform some task within >

Re: [PHP-DEV] Re: RFC: PDO MySQL get warning count

2021-04-06 Thread Matteo Beccati
Hi Daniel, thanks. This seems reasonable to me even though many might not share my point of view. The RFC would eventually apply to 8.1 as it's adding new functionality. Cheers On 05/04/2021 21:17, Daniel Beardsley wrote: This RFC is considering adding a very tiny function wrapping a mysql

Re: [PHP-DEV] Path forward for class_exists with different targeted PHP version implementations

2021-04-06 Thread Rowan Tommins
On 06/04/2021 02:00, Jesse Rushlow wrote: As an example, when the user runs "make:command"; we check if they have PHP 8 && if "class_exists(Symfony\.\Attributes::class)" - if both of those === true, we import the attribute class and generate the needed attributes for the command. Otherwise w

Re: [PHP-DEV] Re: [RFC] Autoloader Classmap

2021-04-06 Thread Alexandru Pătrănescu
On Tue, Apr 6, 2021 at 1:05 AM Mark Randall wrote: > On 15/03/2021 17:41, Mark Randall wrote: > > I would like to propose the addition of a new mechanism of autoloading > > classes - a classmap that will be consulted prior to checking the > > spl_autoload_register'd callbacks. > > > > https://wik