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 cd08c92..ed5a017 100644
--- a/compiler/cpp/src/generate/t_php_generator.cc
+++ b/compiler/cpp/src/generate/t_php_generator.cc
@@ -407,7 +407,7 @@
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);