Corrected a bug with multiple const defs in one line
commit98d83bc524f17abc6a3c16a696d09ee0b11ad8b9
authorLiran Nuna <liranuna@fb.com>
Tue, 29 Apr 2014 17:40:08 +0000 (29 10:40 -0700)
committerJoelMarcey <joelm@fb.com>
Fri, 2 May 2014 16:56:14 +0000 (2 09:56 -0700)
tree15d246fa98376b5eac4c3aef0f24f71472cf5a7a
parentf4a4b54b8c658fd9af538f8377526c3b69323950
Corrected a bug with multiple const defs in one line

Summary: A bug in the parser caused only the last constant in a constant expression list to be evaluated corectly.
This diff corrects the issue, and adds a test to prevent it.

Reviewed By: @elgenie

Differential Revision: D1299659
hphp/parser/hphp.tab.cpp
hphp/parser/hphp.y
hphp/test/slow/constant/multi_const.php [new file with mode: 0644]
hphp/test/slow/constant/multi_const.php.expect [new file with mode: 0644]