Re: [PHP-DEV] [RFC]I'd like to see the RFCs that deprecate the FFI non-static approach start voting

2024-07-06 Thread chopins xiao
The reason I'm not so polite is because I'm so angry. Firstly, the Deprecate functions with overloaded signatures RFC's approach to FFI recommendations is unfounded, and secondly, the PR commit(https://github.com/php/php-src/commit/4acf0084dcd63ec369a610ec966db33f322694c8) has not been voted o

[PHP-DEV] [RFC]I'd like to see the RFCs that deprecate the FFI non-static approach start voting

2024-07-05 Thread chopins xiao
My Submit RFC: https://wiki.php.net/rfc/ffi-non-static-deprecated Since no one responded to the first announcement, I am not sure if anyone agrees, so I will announce it again。 Since this RFC is the opposite of a PR, and the PR has already been merged and is expected to be released in PHP 8.4, ca

Re:[PHP-DEV] [RFC] [discussion] Deprecate FFI instance calls to non-static methods instead of static methods

2024-06-25 Thread chopins xiao
https://github.com/php/php-src/commit/4acf0084dcd63ec369a610ec966db33f322694c8 This PR has been merged and will probably be released in PHP 8.4, so hopefully a result will come out soon. Regards Chopin Xiao

[PHP-DEV] [RFC] [discussion] Deprecate FFI instance calls to non-static methods instead of static methods

2024-06-21 Thread chopins xiao
I've added a new RFC to deprecate FFI instance calls to non-static method. The PR https://github.com/php/php-src/commit/4acf0084dcd63ec369a610ec966db33f322694c8 deprecation of static methods is not a good solution. Now that the FFI API is a mess, this PR will make a fix impossible My RFC link h

[PHP-DEV] FFI::new(), FFI::type(), FFI::cast() statically RFC is stupid implementation

2024-06-19 Thread chopins xiao
Haven't been paying attention for a while and found that FFI::new(), FFI::type(), FFI::cast()statically are marked as deprecated, which is a bad implementation. Suggesting in RFC:https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#fficast_ffinew_and_ffitype that you should r

[PHP-DEV] Is it possible to add asynchronous loop call function ?

2023-11-20 Thread chopins xiao
Similar to a tick event, an async function will be called automatically after the block of code . and the async function is cleared when script shutown. Async function can be cleared after they have returned, or they can continue to be called at the next event after they have returned. and some

[PHP-DEV] 回复: [PHP-DEV] Replace ugly attribute token #[] to other

2023-08-23 Thread chopins xiao
发件人: Alexandru Pătrănescu 发送时间: 2023年8月23日 16:16 收件人: chopins xiao 抄送: internals@lists.php.net 主题: Re: [PHP-DEV] Replace ugly attribute token #[] to other On Wed, Aug 23, 2023 at 9:36 AM chopins xiao mailto:chopins.x...@gmail.com>> wrote: I use @ instead of #[] as attribute

[PHP-DEV] Replace ugly attribute token #[] to other

2023-08-22 Thread chopins xiao
I use @ instead of #[] as attribute token. attribute use whitespace marks are closed. Of course you can start with @@ or #, other. error control use @@ instead of @, add T_SILENCE token new syntax: one attribute: @attribute{WHITESPACE} @otherAttribute(12){WHITESPACE} group attribute: @attribute1(

[PHP-DEV] Add another php syntax for simplify code

2022-04-25 Thread chopins xiao
0. when dot object opeator is enable, use small sign and add sign [<+] be equivalent to [.] for string concat mark. compatibility is achieved through configuration switches. syntax : >>> $a = 'str0'; >>> $a .= 'str1' <+ 'str2' <+ 'str3' <+ $str_var <+ strcall();