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

``` var manager, value, exists; let manager = new Manager(); let value = "4"; let exists = manager->exists((bool) value); ``` The last line does not compile and you get ```...

enhancement

Error: "Reached end of the method without returning a valid type specified in the return-type hints" ```zep public function testSwitch() -> int { var a; let a = 1; switch...

bug

Currently switch statements are overly picky about how they are setup and also in regards to method return types. The compile will issue a warning about the "123" case because...

enhancement

```zephir protected function doStuff(var theThings, bool correctly = false) { var correctly; var_export(correctly); } public final function __construct( di) { this->doStuff("abc", true); } ``` ``` dschissler@box1:/opt/project$ zephir build Warning: Variable...

enhancement

Currently the compiler kaks out if you try to place a method declaration above a property. It will point to the semi-colon of the property line instead of explaining why...

enhancement

The following code will generate errors at compilation due to type char to string conversion. Also `(char)` cast will throw an unknown type error. ```php public static function getRandom(int length,...

nfr

_From @ger-hard on February 22, 2018 16:13_ ### Expected and Actual Behavior When the class B in Zephir (which inherits from an abstract class A)vhas to implement at least one...

bug

Example : https://stackoverflow.com/questions/5197300/new-self-vs-new-static When using `new static()`, the returned object class should be the child class, not the parent class. Zephir doesn't recognize the difference between `static` and `self`

nfr

When I run a zephir build, I got the message: Unknown type: concat But no file, or line where this issues occurs. Is there a way to add more output...

bug

Currently, Zephir compiler misses a lot of cases where method caching could save some time. Some of these misses are by design (i.e., when a non-final method is called, the...

question
rfc