Re: [PHP-DEV] Steal labelled break and continue from zig?

2023-02-27 Thread naitsirch
Am 27-Feb-2023 23:37:29 +0100 schrieb kar...@negyesi.net: > Hello, > > As I was reading https://kristoff.it/blog/zig-multi-sequence-for-loops/ I > found a very nice trick which in PHP would be: > > foo: while ($i--) { > if ($ % 2) break foo; > } > > What do you think? > > Charlie It looks int

[PHP-DEV] Steal labelled break and continue from zig?

2023-02-27 Thread Karoly Negyesi
Hello, As I was reading https://kristoff.it/blog/zig-multi-sequence-for-loops/ I found a very nice trick which in PHP would be: foo: while ($i--) { if ($ % 2) break foo; } What do you think? Charlie

[PHP-DEV] memdup(zend_ast_ref)

2023-02-27 Thread Max Kellermann
Hi, today, I stumbled on this piece of code in zend_persist.c: zend_ast_ref *old_ref = Z_AST_P(z); Z_AST_P(z) = zend_shared_memdup_put(Z_AST_P(z), sizeof(zend_ast_ref)); This is the definition of `zend_ast_ref` from zend_types.h: struct _zend_ast_ref { zend_refcounted_h gc; /*zend_ast

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

2023-02-27 Thread Alex Wells
On Mon, Feb 27, 2023 at 5:09 PM Clint Priest wrote: > > On 2/13/2023 4:13 AM, Arvids Godjuks wrote: > > Good day dear Internals! > > > > I've been following this thread/RFC from its inception to the current > > moment. I have watched the situation deteriorate and at this point, I > have > > major

[PHP-DEV] [RFC] [Vote] Typed class constants

2023-02-27 Thread Máté Kocsis
Hi Everyone, I've just opened the vote for the "Typed class constants" RFC, which is going to be open for 2 weeks (until 2023-03-13). Link: https://wiki.php.net/rfc/typed_class_constants Discussion: https://externals.io/message/119433 Regards, Máté Kocsis

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

2023-02-27 Thread Clint Priest
On 2/13/2023 4:13 AM, Arvids Godjuks wrote: Good day dear Internals! I've been following this thread/RFC from its inception to the current moment. I have watched the situation deteriorate and at this point, I have major concerns about the events that transpired, the motivations of some decisio

Re: [PHP-DEV] [RFC] [Discussion] Typed class constants

2023-02-27 Thread Máté Kocsis
Hi Claude, > Although they are not explicitly mentioned, I assume that typed constants > are also available on traits? > Yes, sure! I've just clarified the RFC by mentioning this fact as well as adding an example. Regards, Máté