lisachenko / z-engine

:zap: PHP Engine Direct API
MIT License
448 stars 22 forks source link

Use type_info for setting Zval type #7

Closed lisachenko closed 4 years ago

lisachenko commented 4 years ago

As suggested by @nikic, I shoud use zval->u1->type_info instead of low-level zval->u1->v->type

nikic commented 4 years ago

type is right for checking, type_info is right for setting :)