Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
0cdc6c8
)
Thrift: Fix new-style generated PHP code.
author
David Reiss
<dreiss@apache.org>
Tue, 13 Nov 2007 11:55:06 +0000
(11:55 +0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/compiler/cpp/src/generate/t_php_generator.cc
b/compiler/cpp/src/generate/t_php_generator.cc
index
cd08c92
..
ed5a017
100644
(file)
--- 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);