Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-04 Thread Mike Schinkel
> On Jul 4, 2024, at 9:16 PM, Michael Morris wrote: > On Wed, Jul 3, 2024 at 11:11 PM Mike Schinkel > wrote: > So I've had more time to mull this over, and some research, and I think I > have an approach. > > First, instead of 'import', use 'require_module'. The par

Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-04 Thread Michael Morris
On Wed, Jul 3, 2024 at 11:11 PM Mike Schinkel wrote: > >> import 'file.php v1.0.0'; > > > > Where will PHP be able to get the version number in a performant manner? > > > > A question for another day. > > Frankly if your proposal hinges on using version numbers to differentiate > then I think i

Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-04 Thread Mike Schinkel
> On Jul 4, 2024, at 3:05 PM, Chuck Adams wrote: > >> On Jul 4, 2024, at 12:02 PM, Mike Schinkel wrote: >> >> The point being that PHP is free to choose how they are defined with respect >> to PHP. >> >> To which I will add "as long as the terms are used consistently.” > > ...but whatever

Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-04 Thread Chuck Adams
> On Jul 4, 2024, at 12:02 PM, Mike Schinkel wrote: > > Your definitions are language-specific. For example, in Go the definitions > for those terms are the opposite of how you defined them. > > The point being that PHP is free to choose how they are defined with respect > to PHP. > > To w

Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-04 Thread Mike Schinkel
Hi Chuck, > On Jul 4, 2024, at 11:05 AM, Chuck Adams wrote: >> On Jul 3, 2024, at 6:16 PM, Michael Morris wrote: >> >> Hello all. Hitting reset again as the primary problem at hand has become >> clear. Let's recap it. >> >> Autoloading is great for loading packages, but it can't load differe

[PHP-DEV] Support for pkg-config .pc files

2024-07-04 Thread Peter Kokot
Hello, There is another pull request in preparation that I'd like to squeeze in the PHP-8.4 branch if it will possible to wrap it up until the feature freeze milestone: https://github.com/php/php-src/pull/13755 In short, pkg-config is *nix command line utility to query installed libraries on the

Re: [PHP-DEV] Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript)

2024-07-04 Thread Larry Garfield
On Thu, Jul 4, 2024, at 5:48 AM, Rob Landers wrote: > If I could have one to be a PER first, it would be the container > interface (PSR-11). When it was originally worked on, there was > basically one lifecycle of an object: a request. For almost all > possible SAPIs, after the request ended, e

Re: [PHP-DEV] [PHP-Dev] Versioned Packagers (Iteration IV)

2024-07-04 Thread Chuck Adams
> On Jul 3, 2024, at 6:16 PM, Michael Morris wrote: > > Hello all. Hitting reset again as the primary problem at hand has become > clear. Let's recap it. > > Autoloading is great for loading packages, but it can't load different > versions of the same package at the same time. Why would y

[PHP-DEV] PHP 8.2.21 Released!

2024-07-04 Thread Sergey Panteleev
The PHP development team announces the immediate availability of PHP 8.2.21. This is a bugfix release. All PHP 8.2 users are encouraged to upgrade to this version. For source downloads of PHP 8.2.21 please visit our downloads page. Windows binaries can be found on the PHP for Windows site. The li

[PHP-DEV] [RFC] Improve language coherence for the behaviour of offsets and containers

2024-07-04 Thread Gina P. Banyard
Hello internals, I would like to formally open the discussion on an RFC I've been working on for the past year: https://wiki.php.net/rfc/container-offset-behaviour As DokuWiki is a bit of a faff at times, the Markdown sources are available on GitHub: https://github.com/Girgias/php-rfcs/blob/mas

Re: [PHP-DEV] Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript)

2024-07-04 Thread Rob Landers
On Thu, Jul 4, 2024, at 12:37, Ken Guest wrote: > > > On Thu, 4 Jul 2024 at 07:32, Rob Landers wrote: >> __ >> >> My main feedback to PSR’s is that they are fundamentally broken due to being >> outdated. The idea behind the standards is sound, but there are only a few >> PSRs that are applica

Re: [PHP-DEV] Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript)

2024-07-04 Thread Ken Guest
On Thu, 4 Jul 2024 at 07:32, Rob Landers wrote: > > My main feedback to PSR’s is that they are fundamentally broken due to > being outdated. The idea behind the standards is sound, but there are only > a few PSRs that are applicable to today’s PHP. When I look at creating new > libraries today, P