+bool psi_impl_var_validate(struct psi_data *data, struct psi_impl_var *ivar,
+ struct psi_validate_scope *scope)
+{
+ if (scope && scope->current_let) {
+ struct psi_let_exp *current_let_exp = scope->current_let;
+
+ while ((current_let_exp = current_let_exp->outer)) {
+ struct psi_impl_var *svar = psi_let_exp_get_impl_var(current_let_exp);
+ zend_string *tmp = ivar->fqn;
+
+ ivar->fqn = psi_impl_var_name_prepend(ivar->fqn, svar->name);
+ zend_string_release(tmp);
+ }
+ } else if (scope && scope->current_set) {
+ struct psi_set_exp *current_set_exp = scope->current_set;
+ while ((current_set_exp = current_set_exp->outer)) {
+ struct psi_impl_var *svar = psi_set_exp_get_impl_var(current_set_exp);
+ zend_string *tmp = ivar->fqn;