diff --git a/compiler/cpp/src/generate/t_php_generator.cc b/compiler/cpp/src/generate/t_php_generator.cc index bd6e7d803..f4b4521d6 100644 --- a/compiler/cpp/src/generate/t_php_generator.cc +++ b/compiler/cpp/src/generate/t_php_generator.cc @@ -443,7 +443,7 @@ void t_php_generator::_generate_php_struct_definition(ofstream& out, indent() << "if (is_array($vals)) {" << endl; indent_up(); if (oop_) { - out << indent() << "parent::construct(self::$_TSPEC, $vals);" << endl; + out << indent() << "parent::__construct(self::$_TSPEC, $vals);" << endl; } else { for (m_iter = members.begin(); m_iter != members.end(); ++m_iter) { out <<