Thrift: Fix new-style generated PHP code.
authorDavid Reiss <dreiss@apache.org>
Tue, 13 Nov 2007 11:55:06 +0000 (11:55 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 13 Nov 2007 11:55:06 +0000 (11:55 +0000)
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

index cd08c92..ed5a017 100644 (file)
@@ -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);