Re: [PHP-DEV] RFC idea: using the void type to control maximum arity of user-defined functions

2024-04-05 Thread Pierre
to pass values to templates. There are tons of use case like this in old yet still running code. But I would love it to be deprecated, raise warnings, and give some time for people to fix (adding an explicit `mixed ... $values` is enough to fix broken code). Cheers, -- Pierre

Re: [PHP-DEV] [RFC[ Property accessor hooks, take 2

2024-02-21 Thread Pierre
things both in the PR and the RFC. We are willing to do so if the consensus is that it would be beneficial, but want to ask before putting in the effort. Yes please ! Pass ! I don't have voting rights, but we need this. Cheers, Pierre R.

Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs

2024-01-01 Thread Pierre Joye
On Mon, Jan 1, 2024, 6:18 PM Rowan Tommins wrote: > On 31 December 2023 16:31:31 GMT, Pierre Joye > wrote: > > >php handles this in threadsafe mode > > Depending on your exact definition of "php", this is either irrelevant or > just plain wrong. >

Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs

2023-12-31 Thread Pierre Joye
It is why frankenphp requires a TS build of php. Requests are handled by a thread pool, not in single thread event loop which may block all requests. best, Pierre

Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs

2023-12-25 Thread Pierre Joye
sapi but how it is done using frankenphp would be an order of magnitude better. Having the complex parts in the core us a good start to experiment, adapt. Later a core sapi may be added, we cannot know without trying and let the community uses it. best, Pierre

Re: [PHP-DEV] New "PECL"

2023-12-11 Thread Pierre Joye
ever I am happy to help if desired. I can only, with a diplomatic emphasis, suggest to the author to understand where the php ecosystem is (or was 3 years or more ago). best, Pierre >

Re: [PHP-DEV] Filesystem path APIs

2023-12-08 Thread Pierre Joye
On Fri, Dec 8, 2023, 3:44 PM Max Semenik wrote: > On Wed, Dec 6, 2023 at 10:20 PM Niels Dossche > wrote: > > > Hi internals > > > > I'd like to start a pre-RFC discussion about filesystem path APIs in PHP. > > The reason I bring this up is because of this recent feature request: > >

Re: [PHP-DEV] New "PECL"

2023-12-07 Thread Pierre Joye
including their respective deps) will be amazingly helpful. Cheers, -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] New "PECL"

2023-12-05 Thread Pierre Joye
On Tue, Dec 5, 2023, 10:13 PM Pierre Joye wrote: > > > You may mention https://github.com/FriendsOfPHP/pickle > > which supports pecl.php.net pear format, composer like support, and > conversion to composer format. > > I did a website as well as a test bed and we had

Re: [PHP-DEV] New "PECL"

2023-12-05 Thread Pierre Joye
er 2.x, which now widely used. Similarly we discussed the idea to create a packagist dedicated to extensions. That would be, imo, the best option to date. The current code may need some updates for php8 but nothing difficult or requiring big changes. best, Pierre

Re: [PHP-DEV] Make PHP JIT to generate AVX2/AVX3 for performance improvement?

2023-10-31 Thread Pierre Joye
re than in JIT. As a sidenote, most libraries used by php, where larger intrinsics vectors bring something, implement them already. best, Pierre >

Re: [PHP-DEV] Constructor promoted property and default value

2023-10-23 Thread Pierre
struct(public string $val = 'abc' ) {}}` don't yield the same behavior at the time. Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Constructor promoted property and default value

2023-10-23 Thread Pierre
Le 23/10/2023 à 17:35, Saki Takamachi a écrit : Hi, Pierre You may have overlooked the existence of the magic method `__unserialize()`. Constructor is not the only way to create instances. When rebuilding a serialized object, you may need the initial values ​​of properties. This can easily

Re: [PHP-DEV] Constructor promoted property and default value

2023-10-23 Thread Pierre
those case and affect variables with default values ? I don't know enough PHP internals to give a rational answer to this problem through... Regards, -- Pierre

[PHP-DEV] Constructor promoted property and default value

2023-10-23 Thread Pierre
t that much, probably not a all even") ? Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Custom object equality

2023-10-19 Thread Pierre
is real and obvious. So long as voters are categorically opposed to actual operator overloads no matter the implementation, as represented here by you Pierre but by no means a position that only you hold, I don't think we should be looking for ways to get the functionality through hacks like

Re: [PHP-DEV] Previous discussions about generics syntax only?

2023-10-18 Thread Pierre
PIs. ORM's are one place, but there are many others. Regards, -- Pierre

Re: [PHP-DEV] Custom object equality

2023-10-18 Thread Pierre
the ~= choice because in my mind it literally translates to "is approximately/barely/maybe comparable to". By the way, please  do not use abbreviations such as WDYT, I'm not a native english speaker and I don't know all abbreviations, I had to duckduckgo' it. Regards, -- Pierre -- PHP

Re: [PHP-DEV] Previous discussions about generics syntax only?

2023-10-18 Thread Pierre
Le 18/10/2023 à 13:01, Alex Wells a écrit : The community has just now decided on the PHPDoc syntax for generics, has just started widely adopting them in packages and has just got first-party support from PHPStorm. I doubt that migrating to yet another temporary solution (one that still

Re: [PHP-DEV] Two new functions array_first() and array_last()

2023-10-16 Thread Pierre
Le 15/10/2023 à 18:09, Larry Garfield a écrit : That has already been done:https://www.php.net/array_is_list --Larry Garfield Oh, I forgot it was accepted and merged, thanks for pointing at it. Cheers, Pierre

Re: [PHP-DEV] Two new functions array_first() and array_last()

2023-10-15 Thread Pierre
to bikeshed about naming) would be a good addition as well, that, in my opinion, would be pertinent to add at the same time. Regards, Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-12 Thread Pierre Joye
On Fri, Oct 13, 2023, 2:01 AM Jordan LeDoux wrote: > > > > I believe MPFR is what is used by ext-decimal. The only thing that makes > ext-decimal a somewhat difficult replacement for BCMath is that one of them > uses precision and the other uses scale. (Total accurate digits versus > total

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-12 Thread Pierre Joye
Hi Jordan On Fri, Oct 13, 2023, 1:24 AM Jordan LeDoux wrote: > > > On Thu, Oct 5, 2023 at 5:27 AM Saki Takamachi wrote: > >> Hi, Pierre >> >> In fact, I predict that many use cases will be covered by GMP. >> >> Still, I think that there may

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-04 Thread Pierre Joye
Hi On Wed, Oct 4, 2023, 6:39 PM Saki Takamachi wrote: > Hi, Marc, Pierre > > Thank you for all the information. > > After all, I feel that BCMath and GMP have different roles. > > Arbitrary precision mathematics and very high precision mathematics are > similar but di

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-03 Thread Pierre Joye
On Tue, Oct 3, 2023, 4:13 PM Saki Takamachi wrote: > yes, they do, as do almost all floating points implementation. > > Memory limited float values and their respective operations are still > useful in many areas, but financial values and the likes. Scaled integers > are the way for accuracy. >

Re: [PHP-DEV] [RFC] [Discussion] Adding bcround, bcfloor and bcceil to BCMath

2023-10-03 Thread Pierre Joye
On Tue, Oct 3, 2023, 12:25 PM Saki Takamachi wrote: > > I thought GMP was a function for integers, so I wasn't expecting that tbh. > > However, even if GMP supported floating point numbers, wouldn't it end up > having the inherent error problem of floating point numbers? > yes, they do, as do

[PHP-DEV] Re: Security Audit Priorities

2023-09-30 Thread Pierre Joye
sapi may take more importance soon I think. It won't be as wide as fpm but frankenphp (or similar) will see a significant increase in usage, for good reasons:) best, Pierre >

Re: [PHP-DEV] A new JIT engine for PHP-8.4/9

2023-09-17 Thread Pierre Joye
r this work can be available as experimental, the sooner it will get stable. Best, -- Pierre @pierrejoye -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] Interface Default Methods

2023-07-11 Thread Pierre
languages that were not design with multiple inheritance in mind solves it, such as Java, and I personally find this rather elegant. -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] Interface Default Methods

2023-07-03 Thread Pierre
mentations on interfaces, it would remove the use of having traits at all. Everything would be much easier to read and write. LoggerAwareInterface would no longer require us to use LoggerAwareTrait on every class, etc... This is kind of sugar candy I'd really love. Best regards, -- Pierre -- PHP Inter

Re: [PHP-DEV] Proposal: addition of array_find() and array_find_key() functions

2023-06-02 Thread Pierre
really deserve to be in SPL, and maintained along with core, and be usable without any composer dependencies. PHP is really lacking a complete enumerable / iterable / traversable API. Maybe this is time to design and add one ? -- Pierre -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] [RFC] path_join function

2023-05-17 Thread Pierre du Plessis
On Wed, 17 May 2023 at 18:24, Gunnard engebreth wrote: > > > Maybe im missing something here but the already available `dirname()` > does this. right? > https://www.php.net/manual/en/function.dirname.php > > dirname just traverses up the directory, it doesn't join paths. For example, this

Re: [PHP-DEV] Future stability of PHP?

2023-04-12 Thread Pierre Joye
you did, the volunteers here to do it for you as the language level, won't work. best, Pierre >

Re: [PHP-DEV] Moving PHP internals to GitHub

2023-04-12 Thread Pierre
ing https://externals.io/ Best regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Future stability of PHP?

2023-04-10 Thread Pierre Joye
pment flows of these projects instead of asking php to freeze. best, Pierre

Re: [PHP-DEV] Windows PECL build machine died

2023-02-18 Thread Pierre Joye
Hello, I wonder if we could not use on demand resources for the builds (like windows gh actions) and use the normal distribution mirrors setup? Pierre On Fri, Feb 17, 2023, 8:10 PM JEDI_BC / Bruno CHALOPIN wrote: > Hi > > On 11/07/2022 18:25, Christoph M. Becker wrote: > > On 1

Re: [PHP-DEV] Methods which auto-return the class instance

2022-12-27 Thread Pierre Joye
On Fri, Dec 23, 2022, 7:46 PM joke2k wrote: > Thanks for the feedback! > > On Fri, 23 Dec 2022, 09:33 Claude Pache, wrote: > > > It is very common for fluent class methods to have a verbose `return > > $this;` ending in their body. > > But If you have declared `self` as return type into a

Re: [PHP-DEV] Increase maximum size of an uploaded file to 50Mbyte

2022-09-10 Thread Pierre
and performance. Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Typed constants revisited

2022-03-24 Thread Pierre
Le 24/03/2022 à 16:06, Mark Niebergall a écrit : So you are correct, the const value does have a value that has a type, but there is no way to enforce which type the value is or to use const with inheritance, which is part of the bigger picture here. That was exactly my point: the type could

Re: [PHP-DEV] Typed constants revisited

2022-03-24 Thread Pierre
f a value, the value has already has a type. Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Discussion: String streams

2022-03-22 Thread Pierre
h more explicit and much less alien-like for most people. Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC][Under discussion] Arbitrary string interpolation

2022-03-18 Thread Pierre
quot;; $len = strlen($name); echo "{$name} has a length of {$len}."; I guess it's a matter of taste and convention. Sometime, it make sense and it's just easier to just use string interpolation (for example with multiline templates). Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-04 Thread Pierre Joye
On Sat, Mar 5, 2022, 10:31 AM Kris Craig wrote: > On Wed, Mar 2, 2022 at 4:51 AM Marco Pivetta wrote: > > > But that doesn't mean we should be using the PHP website to start taking > sides in military conflicts. > There is no side to take but the population in Ukraine, friends, family,

Re: [PHP-DEV] Setting to disable the "Undefined array index" warning

2022-02-15 Thread Pierre
d hit paste on every use case you find). Hope it helps, Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Github issues

2022-02-13 Thread Pierre Joye
dd myself to the organization. The organization was limited when gh was only a mirror, so I wonder why all accounts did not get migrated. -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] Github issues

2022-02-13 Thread Pierre Joye
Hi, What has to be done that the github issues can be handled by the same developers than in bugs.php.net? It is a bit weird that I cannot change status or anything else but add comments :) Best, -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] Multibyte strings

2022-02-11 Thread Pierre Joye
> 8 bits) > d) code points (one of 1,112,064 numbers that can be given a meaning by > the Unicode standard) > e) graphemes (what a user would generally think of as a "character") > f) pixels (or any other unit of physical size) > it is why we have intl, which uses the ICU and allow users to update it. That means using the latest standard if needed. best, Pierre >

Re: [PHP-DEV] RFC [Discussion]: Redacting parameters in back traces

2022-01-11 Thread Pierre Joye
Hi Tim, On Tue, Jan 11, 2022 at 4:40 PM Tim Düsterhus, WoltLab GmbH wrote: > > Hi Pierre > > On 1/11/22 4:48 AM, Pierre Joye wrote: > > Also sensitive data goes way beyond arguments, GDPR brings a lot of > > issues here too. Userland packages like monolog provide filters

Re: [PHP-DEV] RFC [Discussion]: Redacting parameters in back traces

2022-01-10 Thread Pierre Joye
Good morning Tim, On Mon, Jan 10, 2022 at 9:06 PM Tim Düsterhus, WoltLab GmbH wrote: I am not sure it makes sense to make the code so verbose to prevent users from showing sensitive data as it never stops (next print_r/var_dump and userland version of them?). Also sensitive data goes way

Re: [PHP-DEV] (Planned) Straw poll: Naming pattern for `*Deque`

2022-01-10 Thread Pierre Joye
ted API? If possible, then algorithm specific on top? a bit like we have with the traversable interface and related. best, -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] User Defined Operator Overloads

2022-01-04 Thread Pierre Joye
we could reach that compromise. There will be the oppositions for the features as a whole, however I am optimistic about our abilities to get there this time rather than wait yet again a few years for something we know we will have anyway. Best. -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Surveying interest regarding CMake

2022-01-03 Thread Pierre Joye
On Tue, Jan 4, 2022, 2:17 AM Pierre Joye wrote: > > > On Tue, Jan 4, 2022, 1:35 AM Horváth V. wrote: > >> On 2022. 01. 03. 18:17, Christoph M. Becker wrote: >> > Oh, that would be an issue. We can't use Cygwin builds; MinGW builds >> > might be okayish, t

Re: [PHP-DEV] Surveying interest regarding CMake

2022-01-03 Thread Pierre Joye
On Tue, Jan 4, 2022, 1:35 AM Horváth V. wrote: > On 2022. 01. 03. 18:17, Christoph M. Becker wrote: > > Oh, that would be an issue. We can't use Cygwin builds; MinGW builds > > might be okayish, though. ICU ships a VS solution file > > (source/allinone/allinone.sln) which works fine. I

Re: [PHP-DEV] [VOTE] User Defined Operator Overloads

2022-01-03 Thread Pierre
d be great. In that sense, I much preferred specific RFC about `__equalsTo()` or `__compareTo()` alone that a huge generic operator overload RFC. I think both could actually be separated, it wouldn't be that weird. Best regards, -- Pierre -- PHP Internals - PHP Runtime Development Ma

Re: [PHP-DEV] [VOTE] User Defined Operator Overloads

2022-01-03 Thread Pierre
Le 03/01/2022 à 17:12, Larry Garfield a écrit : On Mon, Jan 3, 2022, at 9:52 AM, Pierre wrote: I personally tend to agree with everything that Marco said. Especially regarding the fact that it's adding huge complexity to the language itself for mostly edge cases. I'd argue there's many much

Re: [PHP-DEV] [VOTE] User Defined Operator Overloads

2022-01-03 Thread Pierre
t's both readable and navigable, whereas operator overload tend to magically hide what the code really does. Best regards, -- Pierre

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-31 Thread Pierre Joye
re interested. > I will definitely follow it and see what can be done in pickle to support it as well as the legacy build system. thank you for pushing it forward, much needed :) best, Pierre

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-30 Thread Pierre Joye
On Wed, Dec 29, 2021, 8:02 PM Christoph M. Becker wrote: > On 29.12.2021 at 13:38, Horváth V. wrote: > > > Just a quick update on this in between the holidays. > > > > There are indeed quite a few of the libraries provided in the php-src's > > Windows SDK that are missing from Conan Center

Re: [PHP-DEV] Drop support for libmysql with mysqli

2021-12-25 Thread Pierre Joye
drop support for libmysql. > +1 too while the ones maintaining it may have something to say :) P.S. one more point, IIRC License is not compatible > with php one (GPL) despite there is a FOSS exception > for Linux. > +libmysql, just in case :) best, Pierre >

Re: [PHP-DEV] Re: PHP-FPM process management woes

2021-12-22 Thread Pierre Joye
tion about the current stage the ext is in (root process or childs) but that will be painful to do and port. Best, -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-21 Thread Pierre Joye
On Tue, Dec 21, 2021, 5:24 AM Christoph M. Becker wrote: > On 20.12.2021 at 23:01, Horváth V. wrote: > > > On 2021. 12. 20. 17:19, Pierre Joye wrote: > > > >> We may switch to vcpkg distributions, [...], or the current autoconf > >> php js port works too. >

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-21 Thread Pierre Joye
On Tue, Dec 21, 2021, 5:02 AM Horváth V. wrote: > On 2021. 12. 20. 17:19, Pierre Joye wrote: > > We may switch to vcpkg distributions, [...], or the current autoconf > > php js port works too. > > Could you elaborate on what you mean by these? > > The reason why I p

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-20 Thread Pierre Joye
On Tue, Dec 21, 2021, 6:37 AM Andreas Hennings wrote: > > In a class Matrix, you might want to implement three variations of the > * operator: > - Matrix * Matrix = Matrix. > - Matrix * float = Matrix. > - Matrix * Vector = Vector. > Same for other classes and operators: > - Money / float =

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-20 Thread Pierre Joye
On Fri, Dec 17, 2021, 10:23 PM Kalle Sommer Nielsen wrote: > Hi > > Den fre. 17. dec. 2021 kl. 01.09 skrev Horváth V. < > friendlyan...@hotmail.com>: > > Yes, gradually phasing the current build system out is the most > > pragmatic choice, although it will incur some extra maintenance cost for >

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-16 Thread Pierre
my mind, an operator is a function, and there's no reason that it'd be a different thing. Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Re: Finishing AVIF support in getimagesize()

2021-12-08 Thread Pierre Joye
rather allow it if libavinfo js available rather than bundling it. best, Pierre > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > >

Re: [PHP-DEV] Allowing NULL for some internal functions

2021-12-02 Thread Pierre Joye
ching? > I wonder what is the technical benefit from that? I do feel we are moving to a strict typed language. If that is what is desired, then let decide it clearly and move forward to rhst direction. best, Pierre >

Re: [PHP-DEV] Fork microsoft/php-sdk-binary-tools to PHP org on GH

2021-12-01 Thread Pierre Joye
HP on Windows[2], > and at least some adaptions to newer PHP versions need to be done[3], > and there is a PR for building for arm64[4], which may be rejected by > Microsoft. > > Thoughts? Objections? > yes please. And get ride of the CLA while being at it. best, Pierre >

Re: [PHP-DEV] Need Update regarding PHP Travis CI Execution

2021-11-25 Thread Pierre Joye
(I never did but should be smooth :). best, -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Need Update regarding PHP Travis CI Execution

2021-11-24 Thread Pierre Joye
erally not available on other CI providers. what we did for GD. Also adding arm is simple as the gh ci bot works on arm. For ppc and other there is a gh bot port typescript and this is the one we use. Only need to install it instead of gh one, gh website parts remain the same. Best, Pierre

Re: [PHP-DEV] PHP 8 Release Announcement Page

2021-11-19 Thread Pierre
, which deserve a nice presentation. Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] Deprecate dynamic properties

2021-11-16 Thread Pierre Joye
On Tue, Nov 16, 2021 at 4:11 PM Lynn wrote: > > > > On Tue, Nov 16, 2021 at 4:52 AM Pierre Joye wrote: >> >> >> My vote will change to yes as soon as the change is an opt-in instead of an >> opt-out for the 8.x lifetime. >> > > What is the

Re: [PHP-DEV] [VOTE] Deprecate dynamic properties

2021-11-15 Thread Pierre Joye
; > > > Regards, > > Nikita > > > > > I encourage people to vote "yes" on this, if you want PHP to be better > My vote will change to yes as soon as the change is an opt-in instead of an opt-out for the 8.x lifetime. best, Pierre >

Re: [PHP-DEV] [VOTE] Deprecate dynamic properties

2021-11-14 Thread Pierre Joye
On Sun, Nov 14, 2021, 11:42 PM Rowan Tommins wrote: > On 14/11/2021 11:48, Pierre Joye wrote: > > Also I do see it as a kind of strict mode addition and the depreciation > as > > well could be strict mode only. > > > A quick reminder that PHP has no "stri

Re: [PHP-DEV] [VOTE] Deprecate dynamic properties

2021-11-14 Thread Pierre Joye
ee it as a kind of strict mode addition and the depreciation as well could be strict mode only. It could make things too complicated, so only off by default would be an acceptable compromise to me. best Pierre

Re: [PHP-DEV] fpassthru should get an optional length argument

2021-10-30 Thread Pierre
) to implement if fpassthru() natively supported a $max_bytes=null argument, an example of where it would be useful: Hello, Can't you use fseek() and stream_copy_to_stream() to achieve what you're trying to do without consuming memory ? Regards, -- Pierre -- PHP Internals - PHP Runtime

[PHP-DEV] Re: Bugsnet

2021-10-21 Thread Pierre Joye
Hi Joe, On Sun, May 9, 2021, 1:49 PM Joe Watkins wrote: > Morning internals, > > > Having moved our workflow to github, now seems to be the time to seriously > consider retiring bugsnet for general use, and using the tools that are > waiting for us - Github Issues. > yes! yes! yes! and we

Re: [PHP-DEV] Re: [RFC] Deprecate dynamic properties

2021-10-13 Thread Pierre
ple string no matter that the class exists or not, but, I'm being the devil's advocate here, there are use case were you would want the engine to crash when you explicitly reference/use a non existing class, even when it's only its name. I'm sorry this is off-topic. -- Pierre -- PHP Int

Re: [PHP-DEV] Re: [RFC] Deprecate dynamic properties

2021-10-13 Thread Pierre
. (Sorry.) And why not ? using the FQDN is 100% valid, autoloaders should take care of this, not the end user. For what it worth, I'm using both, depending upon context, both can make sense. Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] BC breaking changes in PHP 8.1

2021-09-26 Thread Pierre Joye
. > that was proposed but purity won if I remember correctly. That's kind of defeat the initial goal (attempt) of yearly releases. Now I feel like we introduced more, small or big, bc in minor releases in the name of purity. That counter balance the yearly release with no bc from a migration pace pov. best, Pierre >

Re: [PHP-DEV] [RFC] Locale-independent case conversion

2021-09-23 Thread Pierre Joye
pport would be better. Many distributions built with SSE2 flags but are actually ran on much recent CPUs, same for ARM (ie. graviton/neon f.e.). Thoughts? Maybe Dmitry has a better idea :) Best, -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List T

Re: [PHP-DEV] BC breaking changes in PHP 8.1

2021-09-22 Thread Pierre
HP has did an extremely good job in not making too much BC breaks, and keeping those BC breaks easy to deal with. Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] BC breaking changes in PHP 8.1

2021-09-22 Thread Pierre
and return backward-compatible values for converted resources to objects. Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-09-21 Thread Pierre Joye
On Tue, Sep 21, 2021, 11:56 PM Mike Schinkel wrote: > > On Sep 21, 2021, at 3:45 AM, Pierre Joye wrote: > > > > On Tue, Sep 21, 2021 at 11:21 AM Mike Schinkel > wrote: > > > >> Honestly, at first I confused `Deque` with `Dequeue` and was wondering >

Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-09-21 Thread Pierre Joye
le to learn what a Deque is. :) best, -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-09-20 Thread Pierre
Le 20/09/2021 à 15:46, tyson andre a écrit : Hi Pierre, I'm not certain what you mean by "normalize". https://www.merriam-webster.com/dictionary/normalize mentions At least please try to make it serious, I think you understood what I meant. I'm in no place in arguing about technic

Re: [PHP-DEV] Adding `final class Deque` to PHP

2021-09-20 Thread Pierre
normalize them all and place all new classes in a single new dedicated namespace. Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] RFC: Add `final class Vector` to PHP

2021-09-18 Thread Pierre Joye
name, > or that you're fine with the name but think that the comments by > Larry/Chris/Pierre in this email thread are representative of voters. > Maybe representative of what vectors are and how they are used. Vectorization is a key to programming now like multi threading or par

Re: [PHP-DEV] RFC: Add `final class Vector` to PHP

2021-09-17 Thread Pierre Joye
yList​) are all > collections of `Object` after generic type erasure.) > Thanks for the clarification. So the name of this proposal is misleading. They are not vector. I am not sure php needs another type of fixed array at this stage. So -1 here overall. best, Pierre >

Re: [PHP-DEV] RFC: Add `final class Vector` to PHP

2021-09-17 Thread Pierre Joye
a realloc/free should not be necessary and counter productive from a perf point of view. If one uses it in a daemon, it can always be destroyed as needed. > > To echo Pierre, a Vector needs to be of a single guaranteed type. > > Yes, this gets us back to the generics conversation again, bu

Re: [PHP-DEV] RFC: Add `final class Vector` to PHP

2021-09-17 Thread Pierre Joye
Hi Tyson, Back on my laptop so I will answer my question myself as I read the source code. Please, really, that should be part of the RFC content. Half of the questions here are about APIs, goals, etc. RFC should be specifications as much as possible. On Fri, Sep 17, 2021 at 12:43 PM Pierre Joye

Re: [PHP-DEV] RFC: Add `final class Vector` to PHP

2021-09-17 Thread Pierre
that designing a collection first can still be done, having the vector type/class in core is a great idea. Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Make strtolower/strtoupper just do ASCII

2021-09-17 Thread Pierre Joye
llows the user to enable/disable it before calling some library api they may not be able to(or don't want to) patch. str_use_locale(bool) f.e.? and at some point it can be false by default and later on removed. best, Pierre >

Re: [PHP-DEV] RFC: Add `final class Vector` to PHP

2021-09-17 Thread Pierre
for this, or all other RFC in the future will only create new isolated data structures and make the SPL even more inconsistent. Regards, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] RFC: Add `final class Vector` to PHP

2021-09-17 Thread Pierre Joye
rocessing. It requires a bit of (re)thinking, but it is totally worth it. Generic multiple data types vectors are less useful for such things and SplFixedArray does it already, if I understand the RFC, as it stands now, correctly. best, -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internal

Re: [PHP-DEV] RFC: Add `final class Vector` to PHP

2021-09-16 Thread Pierre Joye
of it, still good to have but not as good as a clear pure Vector support :). Also I think it will be very good to have more details about what this RFC proposes in the RFC. It is kind of hard to follow right now, with all external links. RFCs are better if they act as a real specification :) Best, Pierre

Re: [PHP-DEV] DateTimeZone silently falls back to UTC when providing seconds

2021-09-13 Thread Pierre
confronted with dates problems quite often. Just for fun, some pgsql random select: db=# select timestamp with time zone '2021-09-13 14:24:00+03:15' at time zone 'utc';   timezone -  2021-09-13 11:09:00 Regards, -- Pierre

Re: [PHP-DEV] Adding a way to disable the stat cache

2021-09-07 Thread Pierre Joye
Hi, On Tue, Sep 7, 2021, 5:49 PM Kamil Tekiela wrote: > It's WSL2 > uname -r > 5.4.72-microsoft-standard-WSL2 > no need to test on wsl2, that's a dockerized linux. best, Pierre >

Re: [PHP-DEV] [RFC] Move RNG functions ext/random

2021-09-06 Thread Pierre Joye
ne with this, we have created a proposal to first clean up the > existing RNG-related functionality and move it from ext/standard to > ext/random. > > https://wiki.php.net/rfc/random_ext > > Hopefully this will get a good response. > > Regards, > Go Kudo -- Pierre @pier

Re: [PHP-DEV] Adding a way to disable the stat cache

2021-09-06 Thread Pierre Joye
On Mon, Sep 6, 2021, 10:50 PM Christian Schneider wrote: > Am 06.09.2021 um 16:46 schrieb Pierre Joye : > > Also as someone mentioned here afterwards, instead of removing it > > straight away, I would go with the flag first, less risky :) > > Out of curiosity: Do you thi

  1   2   3   4   5   6   7   8   9   10   >