Static variable

Phalcon always use other local variable for static property.

Example ini di.zep file.

public function __construct()
{
    var defaultDi;

    let defaultDi = self::_default;
    if !defaultDi {
        let self::_default = this;
    }
}

I still do not understand what's in it compared with the code below.

public function __construct()
{
    if ! self::_default {
        let self::_default = this;
    }
}

My Applications using a lot of static properties and static methods. and sometimes gives the message "zendmm heap corrupted".

I found a related issue here https://github.com/phalcon/zephir/issues/825

If you can post the code that successfully reproduces the problem, I think we can help better.