On Sun, Feb 2, 2025 at 2:26 PM Tim Düsterhus wrote:
>
> `break` and `continue` should be bundled together, because they are so
> similar. I'd say that a single RFC (and thus a single discussion for all
> of them) is fine and that RFC can then contain two primary 2/3 majority
> votes for "Should re
Hi Dmitry
Please do not "top-post" on this list. Put your reply *below* the
message you are quoting and ideally cut the quoted parts to the minimum.
See below like I do:
Am 2025-02-02 10:28, schrieb Dmitry Derepko:
If so, one common RFC or each for each operator: return, break,
continue?
`
Thank you, Ilija. I really appreciate it.
Could you please advise do I need to create RFC or it’s better do to it after
solving technical issues?
If so, one common RFC or each for each operator: return, break, continue?
I’d also like to see all this problems by myself and I have a question. Is
Hi Dmitrii
On Fri, Jan 31, 2025 at 3:10 PM Dmitry Derepko wrote:
>
> I’m looking for way to gain some Karma to create an RFC.
> I’ve already made first implementation and shared it:
> https://github.com/php/php-src/pull/17647
>
> I can make 3 different RFC to discuss each change separately, let
On 15.12.2024 at 00:00, Juris Evertovskis wrote:
> I would like to attempt an RFC on the "optional interfaces" feature that I
> mentioned a while ago: https://externals.io/message/125967
>
> I've created a wiki account with username `tontonsb`. Could you please grant
> me the required privileges?
Hi Valentin
On Thu, Dec 28, 2023 at 1:31 PM Valentin Udaltsov
wrote:
>
> I kindly request RFC Karma for my wiki account vudaltsov. I am planning to
> publish RFC "new MyClass()->method() without parentheses". I already
> created a PR, where I got generally positive feedback on this feature:
> htt
Hi Daniil
On Tue, Oct 17, 2023 at 8:25 PM Daniil Gentili wrote:
> I'd like to create RFCs at least for final anonymous classes
> (https://externals.io/message/121356) and a small tweak to JIT defaults
> (https://externals.io/message/121359).
>
> Please give me RFC Karma :)
>
> Username: danog
RF
Hi Yuya
RFC karma was granted, good luck with your RFC!
Ilija
On Tue, Oct 17, 2023 at 5:07 PM youkidearitai wrote:
>
> Hi, internals.
>
> I writing to trim for multibyte support function, mb_trim, mb_ltrim
> and mb_rtrim.
> https://github.com/php/php-src/pull/12459
>
> Please give me RFC Karma.
On Thu, May 4, 2023 at 10:52 AM Tim Düsterhus wrote:
>
> Hi
>
> On 5/4/23 10:39, Robert Landers wrote:
> > I'd like to request RFC Karma for adding a nameof operator to PHP.
>
> That requires a Wiki account which you likely weren't yet able to
> create, due to the unsuccessfulness. We would also n
Hi
On 5/4/23 10:39, Robert Landers wrote:
I'd like to request RFC Karma for adding a nameof operator to PHP.
That requires a Wiki account which you likely weren't yet able to
create, due to the unsuccessfulness. We would also need your username.
Also, I attempted to register an account on
Hi Niels
> I would like to gain RFC karma for creating and proposing an RFC: "Implement
> GH-9673: $length argument for fpassthru".
> Account name: nielsdos
Christoph has granted you RFC karma. Good luck with the RFC!
Ilija
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscrib
On 12/02/2023 15:46, Thomas Hruska wrote:
> On 2/12/2023 5:47 AM, Hans Henrik Bergan wrote:
>> Fwiw I would also find an $offset argument useful. fpassthru's lack of both
>> $length and $offset made my life harder when implementing "HTTP 206 Partial
>> Content" / "HTTP range requests",
>
> I was g
Good point, and come to think of it, people wishing to $offset can fseek()
before before fpassthru() anyway. Nevermind the $offset thing, it's more
trouble than it's worth ^^
On Sun, Feb 12, 2023, 15:46 Thomas Hruska wrote:
> On 2/12/2023 5:47 AM, Hans Henrik Bergan wrote:
> > Fwiw I would also
On 2/12/2023 5:47 AM, Hans Henrik Bergan wrote:
Fwiw I would also find an $offset argument useful. fpassthru's lack of both
$length and $offset made my life harder when implementing "HTTP 206 Partial
Content" / "HTTP range requests",
I was going to suggest this myself until I realized that an $
On 12/02/2023 13:47, Hans Henrik Bergan wrote:
> Fwiw I would also find an $offset argument useful. fpassthru's lack of both
> $length and $offset made my life harder when implementing "HTTP 206 Partial
> Content" / "HTTP range requests",
>
> Ended up with a
> $output = fopen('php://output', 'wb')
Fwiw I would also find an $offset argument useful. fpassthru's lack of both
$length and $offset made my life harder when implementing "HTTP 206 Partial
Content" / "HTTP range requests",
Ended up with a
$output = fopen('php://output', 'wb'); + stream_copy_to_stream()
hack because of fpassthru's sho
On 27.07.2016 at 13:53, Michał Brzuchalski:
> 2016-07-27 12:24 GMT+02:00 Christoph Becker :
>
>> However, that still would require something like
>>
>> $str[0..mb_strlen($needle)-1] == $needle
>
> I've been working on range operator some time ago and had problem with
> double-dot ".." as an op
2016-07-27 12:24 GMT+02:00 Christoph Becker :
> On 27.07.2016 at 02:55, Davey Shafik wrote:
>
> > Ah, I missed that. If we had ranges (e.g. $string[0..4] or
> $string[-1..4])
> > that'd work, but we don't.
>
> However, that still would require something like
>
> $str[0..mb_strlen($needle)-1] ==
On 27.07.2016 at 02:55, Davey Shafik wrote:
> Ah, I missed that. If we had ranges (e.g. $string[0..4] or $string[-1..4])
> that'd work, but we don't.
However, that still would require something like
$str[0..mb_strlen($needle)-1] == $needle
> Now I see some value in the function, though still
On Tue, Jul 26, 2016 at 8:41 PM, wrote:
> Hello,
>
> I would like to submit an RFC for adding a str_begins and str_ends
> function, in relation to https://bugs.php.net/bug.php?id=67035 and
> https://bugs.php.net/bug.php?id=50434. I've added those functions on my
> local PHP copy. I would like to
Ah, I missed that. If we had ranges (e.g. $string[0..4] or $string[-1..4])
that'd work, but we don't.
Now I see some value in the function, though still perhaps not enough to
justify above and beyond strpos etc.
On Tue, Jul 26, 2016 at 5:11 PM, wrote:
> Davey,
>
> Thanks for joining the conver
Davey,
Thanks for joining the conversation! That code snippet is very elegant,
and it is a superb way of checking if a string starts with or ends with
a specific character. However, it does not check if a string starts with
or ends with a specific string, containing multiple characters.
True
Will,
Now that we have generalized support for negative string offsets you can
now just do:
$string = "/foo/bar/bat/";
if ($string[0] === "/") { // fully-qualified path }
if ($string[-1] === "/") { // trailing "/" }
This avoids the overhead of a function call, arguably is as expressive, and
a lo
Thanks for replying David.
Thanks for the questions, its good to elaborate on things some. I'll
address each question here:
1. No, I guess this is my first time reaching out to the community. I
had gone with str_begins and str_ends because it fit some of the current
naming approaches. I coul
Questions:
1.
Have you talked with this list about the terms of you suggestions?
(like str_begins, str_starts, strstarts, strbegins, str_ends,
strends...)
Is yes, sorry, I do not received this topic before.
2.
There some valid performance advantage over strpos()?
3.
And about the "market" for th
On Fri, Jan 15, 2016 at 4:45 PM, Julian Rhind
wrote:
> Hi
>
>
> Thanks all for the feedback - I'm posting back to get some "RFC karma" for
> my newly created wiki account please - so I can post my RFC - username is
> "julian"
>
>
> Thanks
>
>
> Regards
>
>
> Julian
>
>
>
hi Julian,
I've just gra
On Wed, Jul 18, 2012 at 11:43 PM, Galen Wright-Watson
wrote:
> I'd like to see some version of the null-coalescing ternary operator
> (recently brought up in a thread started by Rafael Dohms) make it into PHP.
> To help it along, may I have RFC karma so I can draft a proposal? My PHP
> wiki accoun
27 matches
Mail list logo