Re: [PHP-DEV] Introducing 2 new modes to round function

2023-08-03 Thread Mark Baker
/function.round.php My implementation: https://github.com/php/php-src/pull/11741 I'm not sure if such minor improvement requires RFC, but as someone may have some concerns I create this thread to get your feedback. Kind regards, Jorg -- Mark Baker -- PHP Internals - PHP Runtime Develo

Re: [PHP-DEV] [RFC] New core autoloading mechanism with support for function autoloading

2023-04-11 Thread Mark Baker
value in) equivalent constants like \MyNamespace\MyFunction::function? If there is value, how would that tie in with referencing them as Callables in callback functions? -- Mark Baker -- 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 Mark Baker
ght be a better example. -- Mark Baker -- 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 Mark Baker
ld. "they are making sure deprecations are issued well in advance, sometimes through multiple versions and only then the feature is completely removed or made a full-on error" I do wish that this was always the case! -- Mark Baker -- 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 Mark Baker
22.04. I'm glad that some people can make money out of all this. The 70+ hours a week that I put in to maintaining my own libraries nets me €16,30 a month from a userbase that averages 120k downloads a day -- Mark Baker -- PHP Internals - PHP Runtime Development Mailing List To unsubs

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

2023-04-10 Thread Mark Baker
des. And the attitude of some here on PHP Internals that we should just ignore those who can't develop in greenfield environments using the latest shiny, or that it should just be a simple upgrade step from last version to current release... that's the equivalent of having unit tests tha

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

2023-04-10 Thread Mark Baker
he version is a step from one version to the next. Library writers don't have that luxury: their codebase normally has to work with a range of PHP versions including the latest release; and any fixes that are made for the latest release still have to work with older PHP versions, which can

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

2023-04-10 Thread Mark Baker
s the case for many libraries, as well as some of the tools that we use for developing and testing. -- Mark Baker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Define proper semantics for range() function

2023-03-29 Thread Mark Baker
aviour of mixed alphameric strings, e.g. var_dump(range('A1', 'C5')) which returns a purely alpha array 'A' to 'C'; or var_dump(range('3c', '5e')) which returns numeric (3, 4, 5); or var_dump(range('1', '1e2'))

Re: [PHP-DEV] [IDEA] allow extending enum

2023-03-29 Thread Mark Baker
On 29/03/2023 16:43, Mark Baker wrote: On 29/03/2023 16:31, Davey Shafik wrote: On Mar 29, 2023, at 06:56, Rowan Tommins wrote: On Wed, 29 Mar 2023 at 14:22, Rokas Šleinius wrote: Ok so I am trying to find the argumentation here: This is by design. The point of enums is to be

Re: [PHP-DEV] [IDEA] allow extending enum

2023-03-29 Thread Mark Baker
etc without ApiErrors being is-a HttpErrors. That would make a lot of sense, and I was just having similar thoughts myself. ApiErrors isn't the same enum, or an extension of HttpErrors: it's a new Enum, but it does include all HttpErrors cases (and methods) without the need to dupli

Re: [PHP-DEV] RFC Proposal - Types for Inline Variables

2023-02-07 Thread Mark Baker
'; $findme   = 'php'; int $pos = strpos($mystring, $findme); // $pos can be an integer or false or when a type can legitimately change int $result = PHP_MAX_INT; ++$i; // $i is now a float -- Mark Baker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, v

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

2023-01-31 Thread Mark Baker
of the irregularities and idiosyncracies of alphanumeric strings could be resolved by not trying to cast them as a numeric value before increment/decrement; but by treating them consistently as strings? It would resolve the discrepancy with "5d9"; although not with "0xf9". -- M

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

2023-01-20 Thread Mark Baker
n seem to be making ++ and -- consistent by making them little more than a syntactic sugar for numeric values only; I'm afraid I don't see that as a benefit; but as a retrograde step, and not the same as making ++ and -- consistent. -- Mark Baker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

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

2023-01-20 Thread Mark Baker
die on this hill because that deprecation will have a very direct and adverse affect on my work. -- Mark Baker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

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

2023-01-18 Thread Mark Baker
used. $a = PHP_INT_MAX; ++$a; or $a = '10'; ++$a; both change the datatype of $a; which isn't documented behaviour either. -- Mark Baker

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

2023-01-18 Thread Mark Baker
t was being used on (SA tools won't necessarily help with that); and when looping over Excel rows and columns it would seem strange allowing the ++ operator for rows, but having to use a function call for columns when all previous code also used ++. -- Mark Baker -- PHP Internals - P

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

2023-01-18 Thread Mark Baker
t;glued" back together again for the return. In this regard, when a block is alpha characters, then the increment behaviour matches "Excel's bijective base-26". -- Mark Baker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

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

2023-01-17 Thread Mark Baker
re likely to have business meaning; and also to provide better code readability. -- Mark Baker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Asymmetric visibility

2022-08-08 Thread Mark Baker
ts of PHP, not to mention the potential length of property definitions -- Mark Baker _ |. \ \-3 |_J_/ PHP | || | __ | || |m| |m| I LOVE PHP -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3

2022-06-12 Thread Mark Baker
ned, not where it's called (if they even exist at all at that point), although that's probably more difficult to determine. -- Mark Baker _ |. \ \-3 |_J_/ PHP | || | __ | || |m| |m| I LOVE PHP -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] Adding new closing tag =?> for keeping trailing newline

2022-06-05 Thread Mark Baker
r code, two existing open/close settings and two new combinations, the first you explain but also What should PHP do when it encounters this combination of opening/closing tags? -- Mark Baker _ |. \ \-3 |_J_/ PHP | || | __ | || |m| |m| I LOVE PHP -- PHP Internals -

Re: [PHP-DEV] NULL Coercion Consistency

2022-04-11 Thread Mark Baker
or none; and why I get frustrated whenever a question is raised about an RFC, and the person raising these concerns is too often shouted down for raising "a storm in a teacup". -- Mark Baker _ |. \ \-3 |_J_/ PHP | || | __ | || |m| |m| I LOVE PHP -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC][Under discussion] Deprecate ${} string interpolation

2022-03-14 Thread Mark Baker
deprecations going into this release, I would like to see some risk assessment undertaken on the affect that each deprecation RFC will have, with some real figures for the number of repositories that require work to prepare them for the release. -- Mark Baker _ |. \ \-3 |

Re: [PHP-DEV] 2016 TestFest, did the tests written then ever get merged?

2019-02-09 Thread Mark Baker
On 06/02/2019 08:13, Mark Baker wrote: > Looking at the Voting Eligibility discussion going on at the moment. > > I, like many others, participated in the last testfest 18 months or so > ago. Did the results from that ever get merged? Or have they simply been > discarded or forgo

[PHP-DEV] 2016 TestFest, did the tests written then ever get merged?

2019-02-05 Thread Mark Baker
n the contributions list posted aganst the Workflow and Voting RFC Eligibility list: yet all those who participated in the testfest care about the language enough to get involved -- Mark Baker  _ |.  \ \-3 |_J_/ PHP | || |  __  | || |m| |m|  I LOVE PHP

Re: [PHP-DEV] RFC: RFC Workflow & Voting (2019 update)

2019-02-01 Thread Mark Baker
y have more insight into the internals of PHP than the average PHP developer, but sit astride the fence between the core an duserland development -- Mark Baker _ |. \ \-3 |_J_/ PHP | || | __ | || |m| |m| I LOVE PHP -- PHP Internals - PHP Runtime Development Mailing L

Re: [PHP-DEV] PHP 8 next?

2018-06-25 Thread Mark Baker
;m hearing some complaints from on the ground that releases are currently too frequent, making it difficult for larger organisations to keep up when they have to retest all their own apps/libraries/plugins with the new versions. A fixed cycle and schedule could help plan for change.

Re: [PHP-DEV] PHP 8 next?

2018-06-25 Thread Mark Baker
think that the big jump in performance that JIT warrants is enough to justify a major version change, and it makes for a strong selling point, even if there are no BC breaks -- Mark Baker _ |. \ \-3 |_J_/ PHP | || | __ | || |m| |m| I LOVE PHP -- PHP Internals - PHP Ru

Re: [PHP-DEV] Re: [RFC] [Re-proposed] Adopt Code of Conduct

2016-01-24 Thread Mark Baker
that would make me feel a lot more comfortable about being more proactive -- Mark Baker _ |. \ \-3 |_J_/ PHP | || | __ | || |m| |m| I LOVE PHP -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Specific incident in relationship to the proposed Code of Conduct

2016-01-23 Thread Mark Baker
e proven, such as an email) for a 3rd party to do so, I don't see why that shouldn't be permitted. Of course, there's nothing to stop a 3rd part from calling somebody out if the original alleged offence is public, and I'd hope that other members of the community would do so if

Re: [PHP-DEV] [RFC] [Draft] Adopt Code of Conduct

2016-01-05 Thread Mark Baker
tributors who are thinking about getting involved that they can do so without needing to worry about abuse. -- Mark Baker _ |. \ \-3 |_J_/ PHP | || | __ | || |m| |m| I LOVE PHP -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Additional Rounding modes for the round() function

2016-01-04 Thread Mark Baker
On 04/01/2016 17:12, Andrea Faulds wrote: Hi Mark, Mark Baker wrote: I'd like to suggest a couple of additional options for the round() function, two new flags for PHP_ROUND_UP and PHP_ROUND_DOWN; which are similar to the existing ceil() and floor() functions, but allow a precision argume

Re: [PHP-DEV] RFC Operator Overloading in Userspace

2016-01-03 Thread Mark Baker
nto that magic method -- Mark Baker _ |. \ \-3 |_J_/ PHP | || | __ | || |m| |m| I LOVE PHP -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Additional Rounding modes for the round() function

2016-01-01 Thread Mark Baker
/1658 -- Mark Baker _ |. \ \-3 |_J_/ PHP | || | __ | || |m| |m| I LOVE PHP -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Deprecation of the Error Control Operator (@ symbol)

2015-12-31 Thread Mark Baker
On 31/12/2015 14:52, Junade Ali wrote: I am looking to submit an RFC in order to remove the error suppression operator in PHP, namely the @ symbol. While few and far between, there are still valid use cases for the suppression operator, for example when using curl -- Mark Baker

[PHP-DEV] VCS Account Request: markbaker

2015-12-02 Thread Mark Baker
Creating an RFC -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php