In di.zep code
public function __construct()
{
var defaultDi;
let defaultDi = self::_default;
if !defaultDi {
let self::_default = this;
}
}
why not just like this?
public function __construct()
{
if ! self::_default {
let self::_default = this;
}
}
Why must use other variable?
This trik for prevent memory leak in zephir? https://github.com/phalcon/zephir/issues/825