Fix compiler __construct gen in php

Reviewed By: dreiss

Test Plan: Build payments


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665578 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Slee 2008-03-19 20:16:35 +00:00
parent d92ca7dcea
commit dcdf25b003

View File

@ -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 <<