Re: [PHP-DEV] [RFC] [discussion] Correctly name the rounding mode and make it an Enum

2024-05-31 Thread Gina P. Banyard
d instead exposing the functionality *only* via the new Enum. Especially as those constant have not yet been in a stable release of PHP. Other than that, and seeing the confusing of some other people, maybe using the names "TowardsPositiveInfinity" and "TowardsNegativeInfinity" is better. Best regards, Gina P. Banyard

Re: [PHP-DEV] [RFC] [discussion] Correctly name the rounding mode and make it an Enum

2024-05-31 Thread Gina P. Banyard
inus 1. It should also be noted that ceil/floor is very English specific terminology that may not be immediately obvious to non-English speakers, thus my preference for using some variation of towards positive/negative infinity. Best regards, Gina P. Banyard

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-05-28 Thread Gina P. Banyard
On Tuesday, 28 May 2024 at 15:26, Derick Rethans wrote: > On Mon, 27 May 2024, Ilija Tovilo wrote: > > > On Sun, May 26, 2024 at 11:47 PM Gina P. Banyard intern...@gpb.moe > > wrote: > > > > > On Wednesday, 8 May 2024 at 14:40, Gina P. Banyard > > >

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-05-28 Thread Gina P. Banyard
On Monday, 27 May 2024 at 02:31, Ilija Tovilo wrote: > Hi Gina > > On Sun, May 26, 2024 at 11:47 PM Gina P. Banyard intern...@gpb.moe wrote: > > > On Wednesday, 8 May 2024 at 14:40, Gina P. Banyard intern...@gpb.moe wrote: > > > > > I would like to

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-05-28 Thread Gina P. Banyard
but if that's how you see it fine. If that's the only reason for keeping proper parsing rules, I'm not sure whether that's worthwhile IMHO. Best regards, Gina P. Banyard

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-05-28 Thread Gina P. Banyard
exit is invalid. Moreover, in other programming languages exit() is a function, and I don't see a reason for having something be a language construct when there is no need for it. Best regards, Gina P. Banyard

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-05-26 Thread Gina P. Banyard
On Tuesday, 14 May 2024 at 17:24, Juliette Reinders Folmer wrote: > On 11-5-2024 16:43, Gina P. Banyard wrote: > >> On Thursday, 9 May 2024 at 15:17, Jorg Sowa >> [](mailto:jorg.s...@gmail.com) wrote: >> >>>> I don't think there are any other "functions

Re: [PHP-DEV] [RFC] [Vote] #[\Deprecated] attribute

2024-05-22 Thread Gina P. Banyard
is is an orthogonal issue to this one, and one that has long existed in the language. Every other internal attribute that has been added to PHP has some visible effects to the user, having it do nothing seems rather odd to me. Best regards, Gina P. Banyard

Re: [PHP-DEV] Inconsistencies between parameter number and index when reflecting a method/function

2024-05-15 Thread Gina P. Banyard
0 indexed based is to be consistent with the existing semantics. So I am fine with having it 0 indexed. Best regards, Gina P. Banyard [1] https://www.php.net/manual/en/reflectionparameter.getposition.php >

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-05-11 Thread Gina P. Banyard
://wiki.php.net/rfc/exit-as-function > > > > There have been some slight tweaks to the implementation, namely that the > > transformation from a "constant" to a function is done at compile time and > > we do not hook into the behaviour of constants any longer. > > >

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-05-11 Thread Gina P. Banyard
I don't know the last time I've used those language constructs "like a function". Hope this clarifies things. Best regards, Gina P. Banyard

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-05-11 Thread Gina P. Banyard
On Saturday, 11 May 2024 at 09:05, Juliette Reinders Folmer wrote: > On 8-5-2024 15:40, Gina P. Banyard wrote: > >> I would like to formally propose my idea for exit() as a function brought up >> to the list on 2024-02-24 [1] with the following RFC: >> https://wiki.php.

Re: [PHP-DEV] [RFC] [vote] Support object type in BCMath

2024-05-07 Thread Gina P. Banyard
tanding is that in this case I don't > think it makes any difference to the user. ACK. I feel this RFC has been brought to a vote too early, as such I am changing my vote to no. I am generally in favour of the concept, but there are too many details that are unanswered or didn't even get proper attention for me to feel comfortable with the state of the RFC in question. Best regards, Gina P. Banyard [1] https://github.com/Girgias/php-rfcs/blob/master/comparison-equality-semantics.md [2] https://github.com/Girgias/php-rfcs/blob/master/container-offset-behaviour.md

Re: [PHP-DEV] [RFC] [vote] Support object type in BCMath

2024-05-07 Thread Gina P. Banyard
to true like a "standard" object, or does a Number equal to 0 cast to false? - Considering the property hook RFC has been accepted, should the $value property be a "virtual" property or not? Best regards, Gina P. Banyard

Re: [PHP-DEV] Inconsistencies between parameter number and index when reflecting a method/function

2024-05-04 Thread Gina P. Banyard
On Friday, 3 May 2024 at 16:47, Derick Rethans wrote: > On Fri, 3 May 2024, Gina P. Banyard wrote: > > > On Thursday, 2 May 2024 at 21:33, Derick Rethans der...@php.net wrote: > > > > > On 2 May 2024 13:48:36 BST, Ollie Read php@ollie.codes wrote: > > > >

Re: [PHP-DEV] Inconsistencies between parameter number and index when reflecting a method/function

2024-05-02 Thread Gina P. Banyard
tionFunctionAbstract::getParameters() API did not exist, this is what I would have pushed for. Moreover, PHP already has a 1-indexed and 0-indexed discrepancy with the ob_get_level() and ob_get_status() functions. In the end, I don't really care what we choose, but this just needed clarification from internals on how to proceed. Best regards, Gina P. Banyard

Re: [PHP-DEV] Re: Proposal to Create a MariaDB Alias for the MySQL PDO Driver

2024-05-01 Thread Gina P. Banyard
ECL for this exact reason. Thus adding, effectively, a new database driver makes no sense to me. Best regards, Gina P. Banyard

Re: [PHP-DEV] PDO subclass names

2024-04-29 Thread Gina P. Banyard
aintain a specific PDO Driver they can do so themselves and publish it on PECL, same as how CUBRID (and others) does currently. Best regards, Gina P. Banyard >

[PHP-DEV] Incorrect terminology usage for rounding modes of round()

2024-04-14 Thread Gina P. Banyard
to introducing this new enum and signature change. The only thing I could think of is if this enum should be in a new Maths (or Math or just Mathematics to not need to deal with regional difference in the short spelling of "Mathematics") namespace. Best regards, Gina P. Banyard [1] http

Re: [PHP-DEV] [RFC] Casing of acronyms in class and method names

2024-04-12 Thread Gina P. Banyard
mes to be the one as currently defined, so it might produce diffs depending on which version of PHP the tool is ran on. The output of tests could be affected. Maybe this change is better suited for PHP 9? Best regards, Gina P. Banyard

Re: [PHP-DEV] [RFC] [VOTE] Deprecate implicitly nullable parameter types

2024-03-13 Thread Gina P. Banyard
On Wednesday, 28 February 2024 at 15:24, Gina P. Banyard wrote: > Hello internals, > > I have opened the vote for the "Deprecate implicitly nullable parameter > types" RFC: > https://wiki.php.net/rfc/deprecate-implicitly-nullable-types > > It will run for tw

Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds

2024-03-11 Thread Gina P. Banyard
of PHP 8.4. Best regards, Gina P. Banyard

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

2024-03-11 Thread Gina P. Banyard
FC that used offsetWrite() instead of offsetSet() for the method name of the DimensionWrite interface. Best regards, Gina P. Banyard

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

2024-03-11 Thread Gina P. Banyard
s with the property HashTable directly. My current PR to fix all those weird behaviours is to use the write_property object handler with ZEND_GUARD_PROPERTY_SET guard set. I don't know how hooks are implemented so Ilija should be able to determine how this works exactly, but my guess is that it should "just work" with set hooks being called. > > Again, thank you for your work on this, and I hope it passes easily. > > --Larry Garfield Hope I've answered the questions you had. Best regards, Gina P. Banyard

Re: [PHP-DEV] [RFC] [Discussion] Rounding Integers as int

2024-03-10 Thread Gina P. Banyard
represented as an integer. So round *must* be able to return a float. Best regards, Gina P. Banyard

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

2024-03-04 Thread Gina P. Banyard
backing type to be mixed well you are just required to write a typed property with type mixed, same as readonly. Best regards, Gina P. Banyard [1] https://wiki.php.net/rfc/parameter-no-type-variance

Re: [PHP-DEV] [RFC] [Discussion] Deprecate GET/POST sessions

2024-03-04 Thread Gina P. Banyard
mass deprecation RFC to this one, as I would be very odd to have this accepted but not the latter. Best regards, Gina P. Banyard

[PHP-DEV] [RFC] [VOTE] Deprecate implicitly nullable parameter types

2024-02-28 Thread Gina P. Banyard
Hello internals, I have opened the vote for the "Deprecate implicitly nullable parameter types" RFC: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types It will run for two weeks until the 13th of March 2024. Best regards, Gina P. Banyard

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

2024-02-28 Thread Gina P. Banyard
e same as the array cast, is how do backed/virtual properties interact with get_mangled_object_vars() Best regards, Gina P. Banyard

Re: [PHP-DEV] is this thing on?

2024-02-26 Thread Gina P. Banyard
on a wide-reaching platform with minimal interaction from core developers? Is the objective to just propose, announce, and discuss RFCs and vote on them? etc. Probably each of these objectives require different solutions, and this would probably be a more useful conversation to have. Best regards, Gina P. Banyard

Re: [PHP-DEV] [Pre-RFC] Convert exit (and die) from language constructs to functions

2024-02-24 Thread Gina P. Banyard
s one type juggling context. I realize that I probably should have just spent time writing an RFC and doing the discussion directly, as I'm effectively laying out the arguments why we should do this in an email. Best regards, Gina P. Banyard

Re: [PHP-DEV] [Pre-RFC] Convert exit (and die) from language constructs to functions

2024-02-23 Thread Gina P. Banyard
ual ones, because the current one is just confusing. I am also not sure what would make this a large breaking change, as changing this from a language construct to a function provides us with more capabilities. Best regards, Gina P. Banyard

[PHP-DEV] [Pre-RFC] Convert exit (and die) from language constructs to functions

2024-02-23 Thread Gina P. Banyard
, before I spend more time on this and write a proper RFC, do people think this is a good idea or not? Best regards, Gina P. Banyard

Re: [PHP-DEV] [RFC] Deprecate implicitly nullable parameter type

2024-02-22 Thread Gina P. Banyard
Hello internals, I updated the RFC to encompass all the feedback: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types Let me know if there are any final remarks before we start the vote sometime next week. Best regards, Gina P. Banyard

[PHP-DEV] Resolving self and parent types at compile time

2024-02-20 Thread Gina P. Banyard
mpile time type redundancy check. [2] Note: traits and unbound Closures would still require a way to provide the "scope" but those seem to be cases of limited use for analysing/comparing ReflectionTypes. Best regards, Gina P. Banyard [1] https://github.com/php/php-src/pull/11460 [2] If

Re: [PHP-DEV] ArrayAccess and array_key_exists function

2024-02-19 Thread Gina P. Banyard
rayAccess can have some peculiar behaviour, but this is because the underlying engine handlers are also complex. I think this change makes sense and will keep it in mind/add it to my RFC. Best regards, Gina P. Banyard

Re: [PHP-DEV] automatic formatting checks for pull requests?

2024-02-18 Thread Gina P. Banyard
-revs file so that git blame doesn't care about them. This should resolve the issue of making future merges difficult. Best regards, Gina P. Banyard

Re: [PHP-DEV] Re: [RFC] OOP API for cURL extension

2024-02-17 Thread Gina P. Banyard
ch _technically_ breaks the handling of options that require a callables, as the callable is checked to exist _when_ attempting to call it and not when actually passing it to curl_setopt. But this should change anyway if I merge my PR which "fixes" this. [1] Best regards, Gina P. Banyard [1] https://github.com/php/php-src/pull/13291

Re: [PHP-DEV] automatic formatting checks for pull requests?

2024-02-17 Thread Gina P. Banyard
hat's kinda irrelevant. It would be nice to have some formatting rules to harmonize the codebase as it is somewhat the wild west, but as far as my understanding goes is that Clang format struggles to understand our codebase (namely macros) and is difficult to set-up for php-src. Best regards, Gina P. Banyard

Re: [PHP-DEV] [RFC] [VOTE] Add http_(get|clear)_last_response_headers() function RFC

2024-02-14 Thread Gina P. Banyard
On Tuesday, 30 January 2024 at 20:52, Gina P. Banyard wrote: > On Monday, 29 January 2024 at 11:59, Gina P. Banyard g...@gpb.moe wrote: > > > Hello internals, > > > > I just opened the vote for the Add http_(get|clear)_last_response_headers() > > function RFC

Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-30 Thread Gina P. Banyard
_header variable so that it can be removed. This is a rather fringe feature, and thus I expect these functions to also be a fringe feature. Best regards, Gina P. Banyard -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] [VOTE] Add http_(get|clear)_last_response_headers() function RFC

2024-01-30 Thread Gina P. Banyard
ribe, visit: https://www.php.net/unsub.php I started the vote started yesterday. I don't see a point in extending it by two weeks to have a total voting of 4 weeks + 2 days. Best regards, Gina P. Banyard -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] [RFC] [VOTE] Add http_(get|clear)_last_response_headers() function RFC

2024-01-30 Thread Gina P. Banyard
On Monday, 29 January 2024 at 11:59, Gina P. Banyard wrote: > Hello internals, > > I just opened the vote for the Add http_(get|clear)_last_response_headers() > function RFC: > https://wiki.php.net/rfc/http-last-response-headers > > Vote will run for two weeks and end on

Re: [PHP-DEV] [RFC] Deprecate implicitly nullable parameter type

2024-01-23 Thread Gina P. Banyard
On Tuesday, 23 January 2024 at 16:37, Larry Garfield wrote: > On Tue, Jan 23, 2024, at 2:18 AM, Gina P. Banyard wrote: > > > I fundamentally disagree with the logic that we somehow need to "plan" > > deprecations around how much time we need to provide

Re: [PHP-DEV] [RFC] Deprecate implicitly nullable parameter type

2024-01-23 Thread Gina P. Banyard
On Tuesday, 23 January 2024 at 02:45, Juliette Reinders Folmer wrote: > On 23-1-2024 3:18, Gina P. Banyard wrote: > > > The RFC notes that PHPStan and friends have an easy flag to make the > > > change, which is great, but still that's a minority of PHP devs that even >

Re: [PHP-DEV] [RFC] Deprecate implicitly nullable parameter type

2024-01-22 Thread Gina P. Banyard
rcing coding styles and is capable of fixing this issue. This tool and other code formatting tools are used more widely and for longer than static analysers. Best regards, Gina P. Banyard -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

[PHP-DEV] [RFC] Deprecate implicitly nullable parameter type

2024-01-22 Thread Gina P. Banyard
Hello internals, Máté Kocsis and myself would like to propose deprecating implicitly nullable parameter types. The RFC is available on the wiki at the following address: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types Best regards, Gina P. Banyard -- PHP Internals - PHP Runtime

Re: [PHP-DEV] BLAKE3 hash

2024-01-21 Thread Gina P. Banyard
lowing the discussion difficult. Best regards, Gina P. Banyard [1] https://github.com/php/php-src/blob/master/docs/mailinglist-rules.md -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-21 Thread Gina P. Banyard
Hello internals, I have updated the RFC to include a motivation and rejected ideas section: https://wiki.php.net/rfc/http-last-response-headers Unless there is further discussion, I intend to open the vote for the RFC on Wednesday the 24th of January. Best regards, Gina P. Banyard >

Re: [PHP-DEV] [RFC] [Discussion] Opt-in DOM spec-compliance

2024-01-19 Thread Gina P. Banyard
On Thursday, 18 January 2024 at 20:08, Niels Dossche wrote: > Hi Gina > > On 18/01/2024 14:05, Gina P. Banyard wrote: > > > Hello Niels, > > > > Thank you for the RFC and the thorough overview of the current state. > > > > I think converting th

Re: [PHP-DEV] [RFC] [Discussion] Opt-in DOM spec-compliance

2024-01-18 Thread Gina P. Banyard
odes which never throw? Best regards, Gina P. Banyard -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC][Discussion] Raising zero to the power of negative number

2024-01-11 Thread Gina P. Banyard
n then if you want IEEE 754 behaviour for division you need to use fdiv() as of PHP 8.0 as any division by 0 throws this error since https://wiki.php.net/rfc/engine_warnings#division_by_zero got accepted. I think this change makes sense but would rather have an improved wording/Error as proposed

Re: [PHP-DEV] Multibyte for ucfirst function

2024-01-06 Thread Gina P. Banyard
essage/120409 I think it makes sense to add this in general. Best regards, Gina P. Banyard -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-03 Thread Gina P. Banyard
On Wednesday, 3 January 2024 at 14:38, Michał Marcin Brzuchalski wrote: > Hi Gina, > śr., 3 sty 2024 o 14:41 Gina P. Banyard napisał(a): > >> Hello internals, >> >> I would like to propose an RFC to add the functions >> http_get_last_request_headers() an

Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-03 Thread Gina P. Banyard
On Wednesday, 3 January 2024 at 14:34, Aleksander Machniak wrote: > On 3.01.2024 14:41, Gina P. Banyard wrote: > > > Link: https://wiki.php.net/rfc/http-last-response-headers > > > Wrong function name in the subject (should be "response" not "request&quo

Re: [PHP-DEV] [RFC][Discussion] NotSerializable attribute

2024-01-03 Thread G. P. B.
r is violating LSP, and probably a test should be added for this. Best regards, Gina P. Banyard

[PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-03 Thread Gina P. Banyard
Hello internals, I would like to propose an RFC to add the functions http_get_last_request_headers() and http_clear_last_request_headers() to PHP to replace the magic variable $http_response_header. Link: https://wiki.php.net/rfc/http-last-response-headers Best regards, Gina P. Banyard

Re: [PHP-DEV] Pre-RFC: Fixing spec bugs in the DOM extension

2023-12-29 Thread G. P. B.
tering a custom class is not very powerful and rather cumbersome to use as the constructor is never called. As such, I'm not sure if I would support adding the current mechanism to customize the node classes returned by the extension. Indeed, the current mechanism doesn't play nicely at all with static analysis and this is something I stopped trying to integrate when writing my DocBook renderer project. [1] Best regards, Gina P. Banyard [1] https://gitlab.com/Girgias/docbook-renderer

Re: [PHP-DEV] Proposal: Arbitrary precision native scalar type

2023-12-14 Thread G. P. B.
ning: Uncaught TypeError: Unsupported operand types: > > Decimal\Decimal + Decimal\Decimal in > > > > So, it appears not. > > > > I've pointed out this issue earlier in the discussion and Gina P. Banyard > has replied that this can be a PHP 8.3 bug and he will look int

Re: [PHP-DEV] Proposal: Arbitrary precision native scalar type

2023-12-14 Thread G. P. B.
On Tue, 12 Dec 2023 at 21:00, Robert Landers wrote: > On Tue, Dec 12, 2023 at 2:04 PM G. P. B. wrote: > > GMP supports operator overloading > > GMP kinda-sorta-most-of-the-time supports operator overloading. > Sometimes ... it doesn't. I implemented a field library in PHP (f

Re: [PHP-DEV] Re: Proposal: Arbitrary precision native scalar type

2023-12-12 Thread G. P. B.
Gina P. Banyard On Tue, 12 Dec 2023 at 08:51, Alexander Pravdin wrote: > I just found out that under PHP 8.3, basic arithmetic operations on the > Decimal object variables are no longer supported and cause TypeError. So > this is one more point to implementing native decima

Re: [PHP-DEV] Proposal: Arbitrary precision native scalar type

2023-12-12 Thread G. P. B.
On Fri, 8 Dec 2023 at 10:14, Alexander Pravdin wrote: > On Thu, Dec 7, 2023 at 11:36 PM G. P. B. wrote: > > - Objects are always casted to true, GMP(0) will equal to true. >>> >> >> This is incorrect, GMP object do _not_ support casts to bool >> See https:/

Re: [PHP-DEV] [RFC][Discussion] NotSerializable attribute

2023-12-09 Thread G. P. B.
ternal and attribute-marked classes. > I do agree, adding a isSerializable() function to ReflectionClass is a good idea. Best regards, Gina P. Banyard

Re: [PHP-DEV] Proposal: Arbitrary precision native scalar type

2023-12-07 Thread G. P. B.
My thoughts here are mostly from the user's perspective, I'm > not so familiar with PHP internal implementation. But I think this feature > can be a good goal for PHP 9. > Yes, this is a major project, and as said above I have also thought about adding a rational number type. But the main hurdle for this is changing the zval structure and applying the change everywhere to the engine and extensions. Best regards, Gina P. Banyard

Re: [PHP-DEV] Inconsistency mbstring functions

2023-12-01 Thread G. P. B.
gt; > [1]: https://www.php.net/manual/en/function.mb-strpos.php > [2]: https://www.php.net/manual/de/function.mb-substr.php > [3]: https://www.php.net/manual/de/function.mb-strstr.php > This might have been better to raise as a bug, but in any case I am CCing Alex who's the main maintainer of the mbstring extension so he's aware of this and can possibly provide some explanations. Best regards, Gina P. Banyard

Re: [PHP-DEV] [RFC] [VOTE] Add 4 new rounding modes to round() function

2023-12-01 Thread G. P. B.
On Fri, 1 Dec 2023 at 09:35, Jakub Zelenka wrote: > On Fri, Dec 1, 2023 at 9:28 AM G. P. B. wrote: > >> On Thu, 30 Nov 2023 at 23:45, Jakub Zelenka wrote: >> >>> Hi, >>> >>> On Thu, Nov 30, 2023 at 10:13 PM Jorg Sowa wrote: >>> >>&g

Re: [PHP-DEV] [RFC] [VOTE] Add 4 new rounding modes to round() function

2023-12-01 Thread G. P. B.
is declined as you need 2/3 of votes to pass... > This seems to be a secondary vote which only requires 50% of votes to be accepted. Best regards, Gina P. Banyard

Re: [PHP-DEV] [RFC] [Discussion] Resource to object conversion

2023-11-22 Thread G. P. B.
xplicitly kept in check by using external tools such as static analysis tools, or code style tools. And removing those, or making the language overall more coherent and consistent, requires us to break backwards compatibility. Sincerely, Gina P. Banyard [1] https://go.dev/doc/go1compat: > It is

Re: [PHP-DEV] [RFC] [Discussion] Resource to object conversion

2023-11-21 Thread G. P. B.
kly is probably something we should be doing, and that people paid by the foundation should convert resources to opaque objects in PECL extensions, and other extensions brought to our attention. And yes, that also means helping Oracle with OCI8 that is getting unbundled. I will try to get round to do ext/dba somewhat soon. Best regards, Gina P. Banyard

Re: [PHP-DEV] PHP-8.1 open for bug fixes UNTIL 25 Nov

2023-11-21 Thread G. P. B.
November. I’m very > sorry for the confusion. > > Cheers, > Ben > Does this mean any bug-fix merged into 8.2 already needs to be backported? Or will 8.1 RMs do this? Best regards, Gina P. Banyard

[PHP-DEV] Request PHP 8.3 GA release push back

2023-11-20 Thread G. P. B.
implementation having issues [4] Sincerely, Gina P. Banyard [1] https://github.com/php/php-src/issues/12725 [2] https://github.com/php/php-src/pull/11774 [3] https://github.com/php/php-src/issues/9344 [4] https://github.com/php/php-src/pull/12731

Re: [PHP-DEV] [RFC] [VOTE] Add 4 new rounding modes to round() function

2023-11-15 Thread G. P. B.
ody pointed this out before. > > I don't have any objection to the rounding modes themselves. > Personally I am fine with adding aliases to ext/intl, it is not because the extension is a wrapper that we can't enhance it to be somewhat consistent. However, I do agree that deprecating the existing constants is a bad idea. But the RFC vote, as far as I can understand, is not about deprecating it in this release. Best regards, Gina P. Banyard

Re: [PHP-DEV] Set register_argc_argv to Off by default

2023-11-09 Thread G. P. B.
The change seems to be uncontroversial, so an RFC feels unnecessary here. Just make a PR and I think we can merge this into master. Best regards, Gina P. Banyard

Re: [PHP-DEV] Set register_argc_argv to Off by default

2023-11-07 Thread G. P. B.
m-4632-36hf > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > This sounds sensible to me. Best regards, Gina/George P. Banyard

Re: [PHP-DEV] New RFC : empty() function

2023-10-31 Thread G. P. B.
r, I'm not very convinced at the moment that such a function is truly useful. Best regards, Gina/George P. Banyard

Re: [PHP-DEV] Re: Basic Type Alias

2023-10-30 Thread G. P. B.
es and interfaces. And needing to declare every alias in every single file of a project is a ludicrous idea. Best, Gina/George P. Banyard

Re: [PHP-DEV] Custom object equality

2023-10-25 Thread G. P. B.
people to think stuff through and handle things like polymorphic comparisons. Also, introducing some new kind of weird operator is just... bad. Best regards, George P. Banyard

Re: [PHP-DEV] Peculiar behaviour of ext/xml set_X_handler() functions

2023-10-16 Thread G. P. B.
On Tue, 10 Oct 2023 at 14:52, G. P. B. wrote: > Hello internals, > > While doing some refactoring of ext/xml to bring it up to modern engine > standards, I discovered some peculiar behaviour of the functions which set > callable handlers. > > The PR in question is: https://g

Re: [PHP-DEV] Better name for method Randomizer::nextFloat()

2023-10-16 Thread G. P. B.
point of it. Best regards, George P. Banyard

[PHP-DEV] Peculiar behaviour of ext/xml set_X_handler() functions

2023-10-10 Thread G. P. B.
o also deprecate this feature out right, but this can be done by adding it to the mass 8.4 deprecation RFC. [1] Point of this email is to know if anyone has any complaints about this BC break before merging the PR into master. Best regards, George P. Banyard [1] https://wiki.php.n

Re: [PHP-DEV] Can we deprecate socket_set_blocking() ?

2023-10-09 Thread G. P. B.
p.net/rfc/deprecations_php_8_4 Best regards, George P. Banyard

Re: [PHP-DEV] [RFC] [Discussion] Rounding Integers as int

2023-10-05 Thread G. P. B.
part a warning is emitted). I see no benefit in doing this weird approach instead of just changing the behaviour. Yes this is a theoretical BC break [1], but unless you can show me an actual use case that breaks (and even then) I don't think the approach of this RFC is good. Best regards, George

Re: [PHP-DEV] proc_open() resource to opaque object migration

2023-10-04 Thread G. P. B.
Instead, these extensions should be > considered > > as a collection of different components, and should be namespaced > according > > to these. > > > Does anyone have a good suggestion? > If there needs to be a namespace, we could take inspiration from Python and use OS\Process, as everything relating to processes seem to reside in the os module. Best regards, George P. Banyard

Re: [PHP-DEV] [RFC] [Discussion] Rounding Integers as int

2023-10-04 Thread G. P. B.
rent "broken" implementation, which was broken with 7.0 and the move to 64bit integers. As such, I would just make the behaviour of returning integers the default behaviour in 8.4. If, for some weird reason, people want less accurate numbers, they can always cast the input to float. Best regards, George P. Banyard

Re: [PHP-DEV] Re: [RFC] [Discussion] Add 4 new rounding modes to round() function

2023-10-04 Thread G. P. B.
be at least one version where both variants exist to allow for cross version compatibility. I will also echo Tim's idea of using an enum instead and a union type. For the namespace, I think it would make sense to use Maths\RoundingMode Best regards, George P. Banyard

Re: [PHP-DEV] Add bcround, bcfloor, bcceil to BCMath.

2023-09-29 Thread G. P. B.
functions for BCMath makes a lot of sense to me. Best regards, George P. Banyard

Re: [PHP-DEV] Deprecate PDO::ATTR_ERRMODE [Proposed RFC]

2023-09-06 Thread G. P. B.
i > I don't know about removing the silent mode altogether, but I think the warning version is pretty useless. However, if we are going to remove it, it would be nice to have this done consistently across all bundled extensions. >From the top of my head, I know SQLite3 and the Intl extension also have such flags, and possibly the DOM extension too. Best regards. George P. Banyard

Re: [PHP-DEV] Removing support for the disable_classes INI setting

2023-08-14 Thread G. P. B.
does nothing other than cause segfaults. This functionality is broken, and frankly has always been. The only reason I am asking for an exception is to remove broken functionality that doesn't work and cannot be easily fixed. George P. Banyard

[PHP-DEV] Removing support for the disable_classes INI setting

2023-08-14 Thread G. P. B.
rst RC. I have CCed the RMs for 8.3, and would like the opinion of other people on if this removal makes sense to the majority of people Sincerely, George P. Banyard [1] https://externals.io/message/2076

Re: [PHP-DEV] New reflection methods for working with attributes

2023-07-25 Thread G. P. B.
ng an RFC for those kinds of things. As self-contained, small features do not necessarily require them. Best regards, George P. Banyard PS: Side note, please do not bottom post.

Re: [PHP-DEV] New reflection methods for working with attributes

2023-07-25 Thread G. P. B.
Best, George P. Banyard

Re: [PHP-DEV] [RFC] [VOTE] Deprecate remains of string evaluated code assertions

2023-07-12 Thread G. P. B.
On Wed, 28 Jun 2023 at 17:09, G. P. B. wrote: > Hello internals, > > I'm opening the vote for the > Deprecate remains of string evaluated code assertions RFC: > https://wiki.php.net/rfc/assert-string-eval-cleanup > > It will last for two weeks and end on Wednesday the 12t

Re: [PHP-DEV] [RFC] [Vote] Path to Saner Increment/Decrement operators

2023-07-12 Thread G. P. B.
On Wed, 28 Jun 2023 at 17:07, G. P. B. wrote: > Hello internals, > > I'm opening the vote for the Path to Saner Increment/Decrement operators > RFC: > https://wiki.php.net/rfc/saner-inc-dec-operators > > It will last for two weeks and end on Wednesday the 12th of July >

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

2023-07-11 Thread G. P. B.
the implementation of a default method is far from concrete. Requiring an implementation to provide the implementation for seek(int $position) But being able to provide the trivial implementation of rewind() which is seek(0); Sincerely, George P. Banyard

[PHP-DEV] [RFC] [VOTE] Deprecate remains of string evaluated code assertions

2023-06-28 Thread G. P. B.
Hello internals, I'm opening the vote for the Deprecate remains of string evaluated code assertions RFC: https://wiki.php.net/rfc/assert-string-eval-cleanup It will last for two weeks and end on Wednesday the 12th of July Best regards, George P. Banyard

[PHP-DEV] [RFC] [Vote] Path to Saner Increment/Decrement operators

2023-06-28 Thread G. P. B.
Hello internals, I'm opening the vote for the Path to Saner Increment/Decrement operators RFC: https://wiki.php.net/rfc/saner-inc-dec-operators It will last for two weeks and end on Wednesday the 12th of July Best regards, George P. Banyard

Re: [PHP-DEV] [RFC] Deprecate remains of string evaluated code assertions

2023-06-27 Thread G. P. B.
ould have no side effects) and changing it to void very clearly conveys this meaning that one must not store the result of the assert() as it is not a totally normal function call. Best regards, George P. Banyard

Re: [PHP-DEV] [RFC] Path to Saner Increment/Decrement operators

2023-06-26 Thread G. P. B.
On Tue, 17 Jan 2023 at 14:28, G. P. B. wrote: > Hello Internals, > > I would like to start the discussion on the Path to Saner > Increment/Decrement operators RFC: > https://wiki.php.net/rfc/saner-inc-dec-operators > > The goal of this RFC is to reduce language complexity by

Re: [PHP-DEV] [RFC] Deprecate remains of string evaluated code assertions

2023-06-26 Thread G. P. B.
On Wed, 31 May 2023 at 13:08, G. P. B. wrote: > Hello internals, > > I would like to start the discussion about deprecating various remains > from the now removed string code evaluated assertions functionality of > assert(). > > The RFC is located on the wiki at the follo

Re: [PHP-DEV] [RFC] Deprecate remains of string evaluated code assertions

2023-06-26 Thread G. P. B.
On Wed, 31 May 2023 at 23:20, Claude Pache wrote: > Although your RFC says that the `zend.assertions` ini setting has > superseded `assert.active` for a while, the “official” php.ini file still > advises to modify the value of `assert.active` rather than the one of > `zend.assertion` in order to

  1   2   3   4   5   >