diff --git a/hphp/runtime/vm/func.cpp b/hphp/runtime/vm/func.cpp index 2912b0131..9a574df6e 100644 --- a/hphp/runtime/vm/func.cpp +++ b/hphp/runtime/vm/func.cpp @@ -964,7 +964,6 @@ Func* FuncEmitter::create(Unit& unit, PreClass* preClass /* = NULL */) const { f->shared()->m_numLocals = m_numLocals; f->shared()->m_numIterators = m_numIterators; f->m_maxStackCells = m_maxStackCells; - assert(m_maxStackCells > 0 && "You probably didn't set m_maxStackCells"); f->shared()->m_staticVars = m_staticVars; f->shared()->m_ehtab = m_ehtab; f->shared()->m_fpitab = m_fpitab; diff --git a/hphp/test/quick/zero_eval_stack_depth.php b/hphp/test/quick/zero_eval_stack_depth.php new file mode 100644 index 000000000..5779111fe --- /dev/null +++ b/hphp/test/quick/zero_eval_stack_depth.php @@ -0,0 +1,5 @@ +