From: David Reiss Date: Tue, 13 Nov 2007 11:55:06 +0000 (+0000) Subject: Thrift: Fix new-style generated PHP code. X-Git-Tag: 0.2.0~1140 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=380298f458dcdedb1e59227c90cee4af890bef08;p=common%2Fthrift.git Thrift: Fix new-style generated PHP code. Summary: We were generating a fatal when constructing a struct with an argument. Reviewed By: lucas Test Plan: None. Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665332 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/src/generate/t_php_generator.cc b/compiler/cpp/src/generate/t_php_generator.cc index cd08c921..ed5a0178 100644 --- a/compiler/cpp/src/generate/t_php_generator.cc +++ b/compiler/cpp/src/generate/t_php_generator.cc @@ -407,7 +407,7 @@ void t_php_generator::generate_php_struct_definition(ofstream& out, out << indent() << "if (is_array($vals)) {" << endl << - indent() << " parent::construct(self::$_TSPEC, $vals);" << endl << + indent() << " parent::__construct(self::$_TSPEC, $vals);" << endl << indent() << "}" << endl; scope_down(out);