From 380298f458dcdedb1e59227c90cee4af890bef08 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Tue, 13 Nov 2007 11:55:06 +0000 Subject: [PATCH] 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 --- compiler/cpp/src/generate/t_php_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.17.1