forked from facebook/hhvm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] declareConstant should return true on success
Summary: declareConstant returned false for illegal values, but the defined value for everything else. It should return true for success, and false otherwise. Also add warning for the redeclared case, since it should be rare. Test Plan: fast_tests slow_tests Reviewers: myang, qigao Reviewed By: myang CC: ps, mwilliams, myang Differential Revision: 345637
- Loading branch information
mwilliams
authored and
macvicar
committed
Oct 18, 2011
1 parent
d89445d
commit e0e572e
Showing
3 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters