Use zend_zval_type_name() instead of userspace gettype()