Skip to content

Commit

Permalink
Fixed problem with nested messages if there were multiple ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmewes committed May 29, 2013
1 parent fddfc7e commit 2c5b67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/php-protobuf/ProtobufCompiler/ProtobufParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,8 @@ private function _parseMessageType(
)
);

$message = new MessageDescriptor($name, $file, $parent);
$this->_parseMessageType($file, $content, $message);
$childMessage = new MessageDescriptor($name, $file, $parent);
$this->_parseMessageType($file, $content, $childMessage);

$messageContent = '' . trim(substr($messageContent, $offset['end']));
} else if (strtolower($next) == 'enum') {
Expand Down

0 comments on commit 2c5b67e

Please sign in to comment.