From 63f228d6148f28ca079dafe098f80713c4546512 Mon Sep 17 00:00:00 2001 From: mwilliams Date: Tue, 19 Mar 2013 14:03:55 -0700 Subject: [PATCH] Fix nemo warnings about undefined $this The fix for the crash caused us to take a different path when checking locals. --- hphp/compiler/expression/simple_variable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hphp/compiler/expression/simple_variable.cpp b/hphp/compiler/expression/simple_variable.cpp index 8117ae008..48418c310 100644 --- a/hphp/compiler/expression/simple_variable.cpp +++ b/hphp/compiler/expression/simple_variable.cpp @@ -172,7 +172,7 @@ void SimpleVariable::analyzeProgram(AnalysisResultPtr ar) { } } } else if (ar->getPhase() == AnalysisResult::AnalyzeFinal) { - if (m_sym) { + if (m_sym && !m_this) { if (!m_sym->isSystem() && !(getContext() & (LValue|RefValue|RefParameter|UnsetContext|ExistContext)) &&