Re: [PHP-DEV] RFC: short and inner classes

2025-03-25 Thread Peter Stalman
Why not just add structs at this point? It's almost like we don't want to acknowledge that structs are a thing.

Re: [PHP-DEV] Where to document configuration option changes?

2024-09-04 Thread Peter Kokot
On Wed, 4 Sept 2024 at 15:07, Christoph M. Becker wrote: > > Hi all, > > that issue came up the other day on a pull request[1], but since it is > not particularly related to any single PR, I wanted to ask here for > clarification. > > This is about changes to `./configure` options of php-src, and

Re: [PHP-DEV] Native SSL support in Phar extension

2024-08-26 Thread Peter Kokot
On Mon, 26 Aug 2024 at 20:05, Calvin Buckley wrote: > As such, it might be a bit tricky for people on Windows/AIX; the easiest > solution if PHAR is using the openssl extension's symbols would be to not > build the openssl extension as shared. I've just checked Windows build and the PHP downloade

[PHP-DEV] Native SSL support in Phar extension

2024-08-26 Thread Peter Kokot
Hello, There came up another idea/issue about the Phar extension and its native SSL support. As you might know or not, when building PHP: ./configure --with-openssl --enable-phar the Phar extension will get so-called native SSL enabled through OpenSSL directly. However, when built like this: .

Re: [PHP-DEV] Anyone willing to help out 3v4l ?

2024-08-12 Thread Peter Kokot
On Tue, 13 Aug 2024 at 01:57, Juliette Reinders Folmer wrote: > > Hi all, > > I suppose everyone is aware of 3v4l.org and a lot of us use it on a regular > basis. > > 3v4l also auto-builds the PHP "master" branch every night to allow for > testing with the latest and greatest PHP version and com

[PHP-DEV] Unsubscribe

2024-08-11 Thread Peter Hodur

Re: [PHP-DEV] Require C11 in PHP 8.4

2024-08-06 Thread Peter Kokot
On Mon, 5 Aug 2024 at 19:15, Christoph M. Becker wrote: > But what about other compilers we support on non Windows platforms > currently, like clang, Apple's clang, Solaris Studio and maybe some more > we don't even know about. Might be worth noting here that from what I've tested so far that PHP

[PHP-DEV] Re: [PHP-DEV] Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 — Use a carrot, not a stick.

2024-07-27 Thread Peter Stalman
The deprecation arguments seem almost academic to me. Thanks, Peter

Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4

2024-07-27 Thread Peter Stalman
developers are positively surprised by PHP's modern features. But can we blame them for being surprised if these are the top tutorials out there? Deprecating these functions isn't addressing the core issue. The focus should be on making it easy for new learners to access up-to-date tutorials. Thanks, Peter

Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4

2024-07-26 Thread Peter Stalman
On Thu, Jul 25, 2024 at 11:35 PM Peter Stalman wrote: > If their learning insticast > *instincts. I should also clarify, I'm not against deprecations in general. However, the benefits should outweigh the costs. If something is getting unmaintainable, no longer supported, inherent

Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4

2024-07-25 Thread Peter Stalman
oint, and applies to sha256 just the same. You want to be able to hash the same content and get the same hash. Just the complexity and chance of collision changes. The reliability and security you are concerned with in this scenario really depends on what randomness you feed it. Thanks, Peter

Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4

2024-07-24 Thread Peter Stalman
e. Lots of effect with little gain. The warning in the documentation should be sufficient. Thanks, Peter

Re: [PHP-DEV] tsrm question

2024-07-24 Thread Peter Stalman
krakjoe) would be a good person to ask, he's worked on that and he also did pthreads and parallel. But I'm not sure how active he is anymore. Gina Banyard (Girgias) or Niels Dossche (nielsdos) will probably know too. You can try to ping them in https://chat.stackoverflow.com/rooms/11/php Thanks, Peter

Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4

2024-07-23 Thread Peter Stalman
024 to use md5 and sha1. Granted hashing passwords isn't one, but we're past that as a community already. And for the few that aren't, I'd argue there is no saving. Thanks, Peter

Re: [PHP-DEV] Sync CODEOWNERS

2024-07-18 Thread Peter Kokot
On Thu, 18 Jul 2024, 16:32 Ilija Tovilo, wrote: > Hi Christoph > > On Thu, Jul 18, 2024 at 2:09 PM Christoph M. Becker > wrote: > > > > So I suggest to sync CODEOWNERS for all active branches (and maybe even > > security branches). > > > > What do you think? > > I think back when it was introduc

[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] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript

2024-07-01 Thread Peter Bowyer
allows for visibility control at the boundary, so I can hide implementation classes within the module and control the public interface. Peter

[PHP-DEV] Bumping minimum Apache version to 2.4

2024-06-29 Thread Peter Kokot
Hello, Perhaps you're not aware that the PHP build system currently still supports building apache2handler SAPI for Apache 2.0 and 2.2 branches. Apache 2.2 has been marked as EOL in December 2017 and doesn't receive security patches. Also, most Linux distributions and packages mostly support 2.4 a

Re: [PHP-DEV] Bumping minimum PostgreSQL version to 10.0

2024-06-17 Thread Peter Kokot
On Mon, 17 Jun 2024 at 19:16, Matteo Beccati wrote: > > Hi, > > Il 17/06/2024 19:03, Peter Kokot ha scritto: > > On Mon, 17 Jun 2024 at 18:58, Pierre wrote: > >> > >> Would id affect the possibility to use an old PostgreSQL (eg. 9.6) via > >> PHP (PDO

Re: [PHP-DEV] Bumping minimum PostgreSQL version to 10.0

2024-06-17 Thread Peter Kokot
On Mon, 17 Jun 2024 at 18:58, Pierre wrote: > > Would id affect the possibility to use an old PostgreSQL (eg. 9.6) via > PHP (PDO or ext-pgsql) ? > > If so, it might be a dangerous move for oldest projects, you sometime > can upgrade PHP and your software easily, but can't upgrade the database > s

[PHP-DEV] Bumping minimum PostgreSQL version to 10.0

2024-06-14 Thread Peter Kokot
Hello, we're thinking of bumping the minimum PostgreSQL version supported by PHP from current version 9.1 to version 10.0: https://github.com/php/php-src/pull/14540 A list of PostgreSQL versions and their EOL dates can be seen at https://en.wikipedia.org/wiki/PostgreSQL The versions coverage by

[PHP-DEV] [Discussion] Why can't I do "{$a::class}"?

2024-05-19 Thread Peter Stalman
)`, but doesn't. Take a look: https://3v4l.org/aPCSD I found it at the bottom of the manual entry for Strings[1]. Not something I would use, but it's interesting to see. Thanks, Peter [1]: https://www.php.net/manual/en/language.types.string.php#91628

[PHP-DEV] GitHub milestones

2024-03-27 Thread Peter Kokot
Hello, I was wondering if it would be useful to add GitHub milestones for the PHP-8.4 and PHP-9.0 (or PHP-next or something like this)? https://github.com/php/php-src/milestones Because some pull requests might target versions after the PHP-8.4 and it might be useful to have them additionally sor

Re: [PHP-DEV][RFC][Vote] grapheme_cluster for str_split, grapheme_str_split function

2024-03-26 Thread Peter Kokot
On Tue, 26 Mar 2024 at 06:41, youkidearitai wrote: > > Hi, Internals > > Sorry I mistake. > Send again. > > grapheme_str_split going to "Voting" phase. > Vote end is 10th April 00:00 GMT > > Regards > Yuya > > -- > --- > Yuya Hamada (tekimen) > - https://tekitoh-memdhoi.inf

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

2024-03-15 Thread Peter Kokot
On Tue, 5 Mar 2024 at 01:27, wrote: > > > The VSC part from github (hosting our code), can very easily be ported. > > Issues, discussions etc can not. > > > > With the ongoing enshittification of most of the Internet due to > > advertising and tracking, we'd be negligent not hosting and owning o

Re: [PHP-DEV] php-src docs

2024-03-05 Thread Peter Kokot
On Mon, 12 Feb 2024 at 12:13, Ilija Tovilo wrote: > > Hi Yuya > > It seems you accidentally sent your response to me instead of the list. > > On Sun, Feb 11, 2024 at 5:10 PM youkidearitai wrote: > > > > 2024年2月11日(日) 21:18 Ilija Tovilo : > > > > > > Hi everyone. > > > > > > I would like to start

Re: [PHP-DEV] Re: [External] : [PHP-DEV] [VOTE] [RFC] Unbundle ext/imap, ext/pspell, ext/oci8, and ext/PDO_OCI

2023-11-02 Thread Peter Kokot
On Thu, 2 Nov 2023 at 05:02, Christopher Jones wrote: > > On 2/11/2023 2:46 am, Derick Rethans wrote: > > Hi, > > > > I have just opened voting on the RFC to unbundle imap, pspell, and > > oracle integrations. > > :) > > -- > https://twitter.com/ghrd > > -- > PHP Internals - PHP Runtime Developme

Re: [PHP-DEV] Breakages with rc1

2023-09-05 Thread Peter Kokot
On Tue, 5 Sept 2023 at 11:40, Hanz wrote: > Hello, > > Ran into a couple of issues with RC1 that I haven't seen online. > > With --with-pear: The --with-pear option is deprecated > > With --enable-pear: configure: WARNING: unrecognized options: --enable-pear > > I'm using --disable-all as the fir

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

2023-08-15 Thread Peter Kokot
On Mon, 14 Aug 2023 at 16:18, G. P. B. wrote: > Hello internals, > > While working on some DNF type bugs, I discovered some major issues around > the disable_classes INI setting implementation. Such as: > > - A double-free of the type of a typed property > - A use after free (which segfaults) whe

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

2023-07-11 Thread Peter Kokot
On Tue, 11 Jul 2023 at 13:37, Levi Morrison wrote: > > On Sun, Jul 2, 2023 at 6:11 PM Levi Morrison wrote: > > > > Chatter on the [Interface Default Methods RFC][1] has been quiet for > > the past 6 days, and the feature freeze deadline is fast approaching > > for PHP 8.3, so I'm moving this to v

Re: [PHP-DEV] [VOTE] PHP Technical Committee

2023-04-29 Thread Peter Kokot
On Fri, 28 Apr 2023 at 12:01, Jakub Zelenka wrote: > > Hi, > > The vote is now open for the RFC about introduction of the PHP Technical > Committee: > > https://wiki.php.net/rfc/php_technical_committee > > Regards > > Jakub It would be also good to know why people vote no. -- PHP Internals - PH

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

2023-04-12 Thread Peter Kokot
On Wed, 12 Apr 2023 at 15:53, Alex Wells wrote: > > Hey. > > PHP currently uses internals@lists.php.net for communication. That includes > mostly RFCs (or their votings, or their pre-discussion) and sometimes > questions about the implementation or possible bugs. > > While emailing definitely work

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

2023-04-12 Thread Peter Bowyer
ps://github.com/kambo-1st/ipc-duckdb-ffi-extension-workshop / presentation https://docs.google.com/presentation/d/1_hGrKsJey9YvFMGrKk34p_hRmfPU4swiaUhCpVygVjo/edit. That might be manageable to complete. I won't be stepping up to work on FFI because IMO that requires more experience than I can bring - in extension writing, and particularly in using FFI and knowing its strengths and pitfalls inside-out. For keeping track of what I and others find while using FFI, is this mailing list or a GitHub issue the best place to record it? Peter

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

2023-04-11 Thread Peter Bowyer
hopes for it - but in my experience it doesn't feel finished. php-vips is the biggest example of using it that I've seen. Peter

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

2023-04-10 Thread Peter Bowyer
the benefits of native extensions will often be what's needed instead of FFI. Peter

Re: [PHP-DEV] LDFLAGS broken?

2023-02-22 Thread Peter Kokot
On Wed, 22 Feb 2023 at 14:14, Max Kellermann wrote: > > On 2023/02/22 13:45, Max Kellermann wrote: > > 13 years ago, there was commit > > https://github.com/php/php-src/commit/477649cd3f09 which attempted to > > fix this, but was reverted on the same day by commit > > https://github.com/php/php-s

Re: [PHP-DEV] [VOTE] include cleanup

2023-02-12 Thread Peter Kokot
On Sun, 12 Feb 2023 at 09:31, Max Kellermann wrote: > > On 2023/02/11 17:14, Peter Kokot wrote: > > I've voted in favor of the RFC because of the code-cleaning, > > tech-debt-reducing improvements to code readability. > > Exactly my point, and I'm surpris

Re: [PHP-DEV] [VOTE] include cleanup

2023-02-11 Thread Peter Kokot
On Wed, 1 Feb 2023 at 13:14, Max Kellermann wrote: > > On 2023/01/30 11:26, Max Kellermann wrote: > > If nobody objects, I'll announce the start of voting on February 1st. > > That's today. > > Voting starts now, please vote on my RFC: > https://wiki.php.net/rfc/include_cleanup > > Original disc

Re: [PHP-DEV] [VOTE] Improve unserialize() error handling

2022-10-17 Thread Peter Bowyer
mented in future (9.0?) but now agree that 8.3 isn’t the right place. Peter

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

2022-09-10 Thread Peter Kokot
On Sat, 10 Sept 2022 at 11:32, Yasuo Ohgaki wrote: > > 2022年9月7日(水) 22:58 Misha : > > > Hello everyone, > > > > We spend a lot of time to increase limits for uploads file in PHP. Can we > > increase it in php.ini? > > > > Current value is 2Mb. Its so small value, when photo image can take 8Mb on >

Re: [PHP-DEV] RFC json_validate() - status: Under Discussion

2022-08-26 Thread Peter Bowyer
which I had overlooked. Does an exception make most sense when this happens? Peter

Re: [PHP-DEV] RFC json_validate() - status: Under Discussion

2022-08-26 Thread Peter Bowyer
x27;m not convinced JSON_THROW_ON_ERROR belongs here. I can't think of a case where more than a boolean response is needed. Peter

Re: [PHP-DEV] Proposal for floored division and modulo functions

2022-08-25 Thread Peter Bowyer
On Tue, 23 Aug 2022 at 19:09, David Gebler wrote: > I can just see floor_div and floor_mod getting mixed up > with fdiv and fmod but maybe I'm overthinking it, maybe it wouldn't really > be an issue. Maybe there's alternative names you could give them though > again I suspect the ones you've chos

Re: [PHP-DEV] [RFC] Add json_encode indent parameter

2022-07-04 Thread Peter Cowburn
er, behave identically to now. The "Unaffected PHP Functionality" section only muddied the waters further: "Normal usage ... of the json_encode function will not be affected, as the default of 4 spaces will still be in effect." My point being, I don't think this document was anywhere near ready... but feel free to disagree. Just to finish up, wouldn't it be nice to have the following?.. json_encode($value, indent: 2) Regards, Peter

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

2022-06-08 Thread Peter Kokot
On Wed, 8 Jun 2022 at 20:16, shinji igarashi wrote: > > declare(ignore_newline_after_close_tag=false); > > Thanks for coming up with another idea! > > As others have already pointed out, disabling the closing tag from > eating trailing newline throughout the file would be inconvenient if > we wan

Re: [PHP-DEV] Re: Removal of ${} string interpolation in PHP 9

2022-05-22 Thread Peter Bowyer
27;t entirely removed it, and left a footgun for people with a new special case that isn't variable interpolation and isn't normal characters in a string. Peter

Re: [PHP-DEV] Undefined variables and the array append operator

2022-03-30 Thread Peter Bowyer
$out[$docId]['labels'][$row['document_rejection_reason_id']] = true; } Naturally I would prefer to keep this behaviour for arrays. Peter

Re: [PHP-DEV] [VOTE] Undefined Variable Error Promotion

2022-03-17 Thread Peter Bowyer
all the places > that are covered by the claimed rationale". > > [snip] > > None of this is even mentioned in the RFC, let alone justified. > I have voted no for the same reasons. Peter

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

2021-11-26 Thread Peter Bowyer
re are unresolved discussions that have been going on since at least 2019 [1] about direction and what PHP should become. With the formation of the PHP Foundation I hope these can be revisited. Peter References: 1. https://externals.io/message/106453

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

2021-11-16 Thread Peter Bowyer
e was different when classes were introduced to PHP. But dynamic properties have been around since the start and I am wary of deciding to remove them in PHP 9. Kind regards, Peter

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

2021-11-13 Thread Peter Bowyer
ic properties stays in the language but toggled off/on per class? Peter >

Re: [PHP-DEV] Proposal: Adding an ARRAY_FILTER_REINDEX flag to array_values

2021-09-20 Thread Peter Bowyer
oss a range of array sizes, I'm strongly in favour as I write this a lot. Peter

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

2021-09-20 Thread Peter Bowyer
t think that the comments by > Larry/Chris/Pierre in this email thread are representative of voters. > Both. I object to the name for what's being proposed, but am not necessarily against what's being proposed if it looks more useful than the Spl* stuff. I'm fine with the name b

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

2021-09-18 Thread Peter Bowyer
of the discussion so far has been around whether it's a Vector or what it should be; changing the proposed name will allow the discussion to focus on what you're proposing to add, not what others (myself included) would like to see added to PHP :) Peter

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

2021-09-02 Thread Peter Bowyer
en by the stat cache before and would be pleased to see it gone for good. Peter

Re: [PHP-DEV] Revisiting Userland Operator Overloads

2021-08-09 Thread Peter Cowburn
On Mon, 9 Aug 2021 at 18:48, Jordan LeDoux wrote: > > You claim that this would be documented on php.net and this would be > sufficient. Yet the DateTime class has had operator overloads for > comparison operators since 5.2 and there is still *zero* mention on > php.net > (that I am aware of or c

Re: [PHP-DEV] [RFC] Add parse_query_string as an alternative to parse_str

2021-08-06 Thread Peter Bowyer
been an annoyance, as some querystrings use '.' to denote an array, in the way PHP chooses []. So foo.bar would mean foo[bar] in PHP-speak. The third I won't comment on as I don't know the Url algorithm. Peter

Re: [PHP-DEV] [VOTE] Add PDO function: mysqlGetWarningCount

2021-07-26 Thread Peter Cowburn
> > On Jul 6, 2021, at 08:34, Daniel Beardsley wrote: Voting will be open till 2020-07-21 > This date has passed, yet the vote is still ongoing. Daniel, could you please close the vote and do the usual follow up tasks? If Daniel is unavailable, what is the process for *someone else* doing thos

[PHP-DEV] Problems with the mailing list [was: Re: [PHP-DEV] Request for karma to vote on RFCs]

2021-07-20 Thread Peter Bowyer
is. Can someone who knows the PHP group procedures please tell me the next steps? Peter

Re: [PHP-DEV] Vote!

2021-07-06 Thread Peter Cowburn
ow (July 2021) is pretty unexpected. Kind regards, Peter On Tue, 6 Jul 2021 at 10:47, Daniel Beardsley wrote: > I've moved my RFC to the voting phase. > > Voting will be open till 2020-07-21 > > https://wiki.php.net/rfc/pdo-mysql-get-warning-count > > The pull request (wi

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-28 Thread Peter Bowyer
On Mon, 28 Jun 2021 at 17:08, Larry Garfield wrote: > Javascript doesn't have it natively, but there are 3rd party libraries > that try to do it. > There is a proposal to add it to the language: https://github.com/tc39/proposal-partial-application Peter

Re: [PHP-DEV] [Vote] Partial Function Application

2021-06-23 Thread Peter Bowyer
wrapped function calls). I am a little ambivalent as I do feel the RFC's complexity has grown - I would be happy without the variadic placeholder being included if it's a choice between no partial function application or placeholders only. But if I don't want to use variadic placeholders, hey I can omit them from my code. Peter

Re: [PHP-DEV] Re: RFC: CachedIterable (rewindable, allows any key&repeating keys)

2021-06-09 Thread Peter Bowyer
please trim the emails they're quoting, it makes it easier for readers to focus on what's being discussed in emails. Thanks, Peter

Re: [PHP-DEV] Could we drop the bottom-posting rule?

2021-05-11 Thread Peter Bowyer
st a more welcoming place for newcomers. I doubt "bottom posting" is a term people who started online in the last 10 years know - with today/yesterday's example, my takeaway was the original poster didn't know what it meant. There's also English familiarity to account for. Peter

Re: [PHP-DEV] [VOTE] noreturn type

2021-04-03 Thread Peter Bowyer
the existing > void mistake and feels off, given that other recent changes to PHP have > been more bold, towards removing inconsistencies. > This and Levi's email make compelling arguments and I would like to see this adopted. I have changed my vote to "No". Peter

Re: [PHP-DEV] [VOTE] noreturn type

2021-03-30 Thread Peter Stalman
Aw, my `terminus` suggestion didn't make it. ☹️ Thanks, Peter

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and short functions take 2

2021-03-24 Thread Peter Stalman
iscussion: https://externals.io/message/38290 Thanks, Peter

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and shortfunctions take 2

2021-03-24 Thread Peter Stalman
back that could be > invoked inside a throw-aware buffering helper. > Hi Mark, Have you considered using an array or DTO to pass the data? You could also do this (although I'm not advocating it): ``` $vars = get_defined_vars(); $x = function() use ($vars) { extract($vars); /* ... */ }; ``` Thanks, Peter

Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and short functions take 2

2021-03-24 Thread Peter Stalman
: int { $val = $a + $b; return $val + $c; } } ``` The Short class is "fine", but I would still prefer the Long class. Thanks, Peter

Re: [PHP-DEV] [RFC] Short functions, take 2

2021-03-24 Thread Peter Stalman
ession style" argument? Overall, I'm not really that much against it, but my only worry is that while it is slightly less verbose it might create more cluttered code. Thanks, Peter P.S. I also don't like PSR-12. Allman braces and tabs for life.

Re: [PHP-DEV] [VOTE] Fibers

2021-03-22 Thread Peter Kokot
On Mon, 22 Mar 2021 at 18:23, Guilliam Xavier wrote: > > On Mon, Mar 22, 2021 at 5:23 PM G. P. B. wrote: > > > > > The thing is that by my recollections votes have already been extended. > > Mostly when there has been issues with the mailing list, or some outside > > event. > > > > Moreso, I don'

Re: [PHP-DEV] [VOTE] Fibers

2021-03-17 Thread Peter Stalman
s with it. But it is only dangerous if you use it without knowing what you are doing. Thanks, Peter

Re: [PHP-DEV] [VOTE] Fibers

2021-03-17 Thread Peter Stalman
's already the same > now, so if it's an issue it's not a new one with this RFC. > > It is a new issue. Today, interruptible functions must include a > `yield` statement, so they are explicitly interruptible. > No, they don't need to yield. You can do `$guzzleClient->requestAsync()` today, so how is it different? Thanks, Peter

Re: [PHP-DEV] [VOTE] Fibers

2021-03-16 Thread Peter Stalman
y the same now, so if it's an issue it's not a new one with this RFC. Your average unaware developer can continue to happily use any libraries they want without encountering any async issues. The calls from outside the library will still be blocking, as PHP will still be single threaded. Thanks, Peter

Re: [PHP-DEV] [VOTE] Fibers

2021-03-16 Thread Peter Kokot
Hello everyone, I'm just adding a few cents into this discussion. I've voted "yes" because we don't have any other async stuff RFCs available nor in the preparation. PHP needs such functionalities very badly and very quickly to sort of speak. Adding a brand new extension in the core is maybe a s

Re: [PHP-DEV] Built-in decorator attribute?

2021-03-14 Thread Peter Stalman
On Sun, Mar 14, 2021 at 6:34 PM Peter Stalman wrote: > Would it make sense to have both options? > 6) Multiple decorators on the same function? One problem with the wrapper pattern is that if you have multiple decorators then wouldn't that end up calling the function multiple times?

Re: [PHP-DEV] Built-in decorator attribute?

2021-03-14 Thread Peter Stalman
$args); return call_user_func_array($callable, $args); } } ``` Thanks, Peter

Re: [PHP-DEV] Built-in decorator attribute?

2021-03-14 Thread Peter Stalman
bar($a, $b) { ... } #[Timer('Bob')] public function baz($a, $b) { ... } } ``` Thanks, Peter On Sat., Mar. 13, 2021, 15:04 David Gebler, wrote: > Decorators are a way of bringing aspect oriented programming into PHP core, > yes, among other uses. Go AOP is a fairly bul

Re: [PHP-DEV] Built-in decorator attribute?

2021-03-13 Thread Peter Stalman
Hi David, This sounds a lot like Asect Oriented Programming. Have you looked into that? PHP framework: https://github.com/goaop/framework PECL extension: https://aop-php.github.io/ Thanks, Peter On Sat., Mar. 13, 2021, 08:51 David Gebler, wrote: > With the introduction of attributes

Re: [PHP-DEV] [RFC] noreturn type

2021-03-10 Thread Peter Stalman
On Wed., Mar. 10, 2021, 22:59 Sebastian Bergmann, wrote: > Am 11.03.2021 um 07:51 schrieb Peter Stalman: > > I like this RFC, but I'd like to see the RFC cover if any other languages > > have a similar return type. > > The RFC has a "Prior art in other interprete

Re: [PHP-DEV] [RFC] noreturn type

2021-03-10 Thread Peter Stalman
urn type. The definition of `void` is that it has no return value, so I too agree that the keyword `noreturn` is too close in meaning to `void`. I'd also like to throw the word `deadend` or something similar into the ring, to make things a bit clearer. Thanks, Peter

Re: [PHP-DEV] [VOTE] Fibers

2021-03-10 Thread Peter Stalman
ee anything that is specific to amphp, not anything to limit it to their use. Fibers also exist outside of PHP, while amphp doesn't. Thanks, Peter

Re: [PHP-DEV] [VOTE] Fibers

2021-03-10 Thread Peter Stalman
ay of doing async, but it worked everywhere. Fiber allows that to be much more convenient in switching contexts deep inside a call stack. I don't think it needs to be the end-all-be-all coroutine solution to rival Goroutines, and I'm pretty sure it's not trying to be. Thanks, Peter

Re: [PHP-DEV] [VOTE] Fibers

2021-03-08 Thread Peter Stalman
Here we go again! Looking at you, attributes syntax. Seriously though, any of `this`, `active`, `current`, or even `Fiber::self` are fine with me. You might have the same issue with that last one. Thanks, Peter On Mon., Mar. 8, 2021, 14:57 Larry Garfield, wrote: > On Mon, Mar 8, 2021,

Re: [PHP-DEV] [VOTE]: Change Default mysqli Error Mode

2021-02-12 Thread Peter Bowyer
antiating > mysqli class". This IMHO downplays the impact for people hosting legacy > code. > > Also: If there would have been an intermediate PHP version with default > MYSQLI_REPORT_ERROR I would have voted "Yes", but in the current form I > have to say "No". > I voted "No" for the same reasons. Peter

Re: [PHP-DEV] [VOTE] Dump results of expressions in `php -a`

2021-02-08 Thread Peter Bowyer
first N/2 and the last N/2. Objects often show very little that's useful. Do you know of any research or writeups as to what works best - or even saved output of how various REPLs show their output? Peter

Re: [PHP-DEV] [RFC] Fibers

2021-01-08 Thread Peter Stalman
ain fiber: ", $value, "\n"; // Output: After resuming main fiber: Test Btw, this is just me vomiting my thoughts, I don't know enough about fibers to design it one way or the other, but I hope to understand it more as well as give a few different perspectives on it. Thanks,

Re: [PHP-DEV] [RFC] Enumerations, Round 2

2021-01-05 Thread Peter Bowyer
eneous) care about having string > values. In this case, I highly prefer having explicitely written > (de)hydration code than automatic magic values happening over the place. > I agree. Peter

Re: [PHP-DEV] [RFC] [Discussion] Measuring maximum execution time based on wall-time

2020-12-21 Thread Peter Bowyer
hem. > Tangentially, can this be considered a bug in FPM's handling? I appreciate the speed boost FPM brought over CGI, but the more I work with it the less I like the way it functions (but that is a separate conversation). Peter

Re: [PHP-DEV] [RFC] Fibers

2020-12-17 Thread Peter Stalman
am merely curious. Thank you for pushing this forward, as async is something PHP has been lacking and should have IMO to compare favourably to other alternatives that do. Regards, Peter. On Thu, Dec 17, 2020 at 8:30 AM Aaron Piotrowski wrote: > Hello everyone! > > I would like to i

Re: [PHP-DEV] PHP 8 release announcement page on php.net

2020-10-14 Thread Peter Bowyer
arketing, and I would like the content to address the objections from naysayers online who start by saying "I haven't used PHP since PHP 4/5 and I wouldn't use it because..." Can any firms that support PHP donate a copywriter or marketing executive to help? Peter

Re: [PHP-DEV] [RFC] Global functions any() and all() on iterables

2020-09-01 Thread Peter Bowyer
On Tue, 1 Sep 2020 at 08:59, Marco Pivetta wrote: > Did the namespaces ship sail forever? Can we just have those instead, > please? > To mix metaphors: it sailed, shot down in fiery flames. Unfortunately. Peter

Re: [PHP-DEV] [RFC] Shorter Attribute Syntax Change RFC 0.2

2020-08-19 Thread Peter Bowyer
t provides enclosure with the arg list (). > I read a lot of code I didn't write, and I like your example. It is much more readable and self-documenting. Peter

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-17 Thread Peter Bowyer
renaming is not used) than it is with the delimiter syntax. > Sorry to everyone for causing this hazzle. > These things happen. Thank you for taking on-board the feedback and working on the RFC. Peter

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-17 Thread Peter Bowyer
tribute delimiter syntax would have short-circuited much of this discussion. > Then the secondary votes can be on the preferred block syntax. > Voting no means to keep @@ (unless there's another RFC for voting to > change that for another syntax without ending delimiter). > +1. Peter

Re: [PHP-DEV] [RFC] Shorter Attribute Syntax Change RFC 0.2

2020-08-17 Thread Peter Bowyer
@[JoinColumn("Group_id", "id")], > )] > private $groups; > > < "User_Group", > <>, > <>, > )>> > private $groups; > > @:JoinTable( > "User_Group", > @:JoinColumn("User_id", "id"), > @:JoinColumn("Group_id", "id"), > ) > private $groups; > Good catch. Peter

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-15 Thread Peter Bowyer
are various syntaxes in PHP with no ending symbols (`clone`, > `public`, `yield`). > (I doubt changing this will make a difference since many people prefer > `#[]`/`@[]` for other reasons, > but still consider that sentence to be misleading.) Agreed. Peter

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-11 Thread Peter Bowyer
On Mon, 10 Aug 2020 at 15:41, Peter Bowyer wrote: > > > On Mon, 10 Aug 2020 at 14:59, Derick Rethans wrote: > >> I did answer that as a reply to Rowan: >> >> https://externals.io/message/111312#111346 > > > I'm with Rowan's response to you: >

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-10 Thread Peter Bowyer
parentheses giving: <><>( <><>(<>), 42 ) and: <>[<>( <>[<>(<>)], 42 )] in terms of parsing, use etc. Peter

Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change

2020-08-10 Thread Peter Bowyer
nd why () didn't count. Another person asked a similar question and neither of us got a reply. Peter

  1   2   3   4   5   6   7   >