zephir
zephir copied to clipboard
Zephir is a compiled high-level language aimed to ease the creation of C-extensions for PHP
Rfc utf8
Hello! * Type: bug fix * Link to issue: https://github.com/zephir-lang/zephir/issues/2370 In raising this pull request, I confirm the following: - [x] I have checked that another pull request for this...
Check nightly builds and find a way to add local Dockerfile with PHP8.2. Possible candidate - https://github.com/devilbox/docker-php-fpm-8.2
PHP internals supports a clever struct allocation hack that allows you to allocate arbitrary memory in front of zend_objects to store any C data. Then OffsetOf can be used to...
Currently when method returns `object` or nullable object, it will generate incorrect ARG_INFO (`ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX`) with `NULL` class, which is incorrect during AST parse in PHP userland. See https://github.com/phalcon/cphalcon/issues/16023
```zephir private function filterQuery(string value) -> string { return preg_replace_callback( '/(?:[^%:!\$&\'\(\)\*\+,;=@\/\?]+|%(?![A-Fa-f0-9]{2}))/u', [this, 'doUrlEncode'], value ); } private function doUrlEncode(array matches) -> string { return rawurlencode(matches[0]); } ``` The above produces...
Instead of `zval key;` use `zend_string` struct. See details here - https://github.com/phalcon/cphalcon/issues/15792
I don't think it's very meaningful to implement yield because curl and the IO wait of PDO can't be solved. We can add libuv and boost.context implementation a lower level...
Hi, I need to support array spread in function arguments, ex. `function foo(...params)`. inside arrays is optional, but support from php7.4 is already there too :) thanks!
Hello! * Type: bug fix | new feature | code quality | documentation * Link to issue: In raising this pull request, I confirm the following: - [x] I have...