zephir icon indicating copy to clipboard operation
zephir copied to clipboard

Zephir is a compiled high-level language aimed to ease the creation of C-extensions for PHP

Results 111 zephir issues
Sort by recently updated
recently updated
newest added

In PHP 8.4, the type of `PHP_DEBUG` changes from `int` to `bool`. Please also see [PHP.Watch: PHP 8.4: `PHP_ZTS` and `PHP_DEBUG` constant value type changed from `int` to `bool`](https://php.watch/versions/8.4/PHP_ZTS-PHP_DEBUG-const-type-change). This...

Hi Im getting seg fault core dump when i run several The issue persists across various PHP versions and the latest Zephir version. Compiling with debug isn't an option because...

need script to reproduce

```zep protected final function getSpecial(int special) -> string { string suffix = ""; switch special { case 1: let suffix = "alpha"; break; case 2: let suffix = "beta"; break;...

bug

namespace Demo; class MyClass { protected static someVar; public static function setVar() { let self::someVar = ""; } } let self::someVar = ""; [ERROR] Internal extension compilation failed. Check compile-errors.log...

bug
enhancement

Caused by https://github.com/phalcon/cphalcon/issues/16401

enhancement

issue while trying to build phalcon v5 on php 8.2 Fatal error: During inheritance of IteratorAggregate: Uncaught ErrorException: Return type of Symfony\Component\Finder\Finder::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or...

PHP 8.1 Invalid default value for example: class Test{ public function t1(int i=0) { } } var t; let t=new Test(); t->t1(); Since the call does not take a parameter,...

![image](https://user-images.githubusercontent.com/5556823/194803403-177898b0-f240-4960-b4d7-9689b3f5583c.png) compile-errors.log make: *** No targets specified and no makefile found. Stop. make: *** No targets specified and no makefile found. Stop. jdf.zep ``` namespace Jdate; class Jdf { public...

bug

Allow multiple class return types: ```c test() -> | | null // or test() -> | null ``` Allow multiple parameter types: ```c test(array | null data) -> void ```

**How to reproduce:** - Checkout `https://github.com/phalcon/cphalcon` with branch `v5.0.x` - Move all interfaces, except `ResultsetInterface` from `ext/phalcon/mvc/model/Resultset.zep` to `ext/phalcon/mvc/model/ResultsetInterface.zep` (see code below) - Add missing use statements - try `zephir...