Skip to content

Commit

Permalink
[Fix/HPHPi] Increase maximum function id
Browse files Browse the repository at this point in the history
Summary:
To suppress the warning as the number of functions can exceed the current
limit: HipHop Warning: Maximum function id reached: 65536.

Test Plan:
make fast_tests
run server mode flib test and make sure that no warning as shown above.

Reviewers: qigao, mwilliams

Reviewed By: qigao

CC: hphp-diffs@lists, ps, mwilliams, qigao

Differential Revision: 350451
  • Loading branch information
myang authored and macvicar committed Nov 28, 2011
1 parent 390ccaf commit b77c055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/base/runtime_option.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ bool RuntimeOption::CheckSymLink = false;
bool RuntimeOption::NativeXHP = true;
int RuntimeOption::ScannerType = 0;
bool RuntimeOption::SandboxCheckMd5 = false;
int RuntimeOption::MaxUserFunctionId = 65536;
int RuntimeOption::MaxUserFunctionId = (2 * 65536);

#ifdef TAINTED
bool RuntimeOption::EnableTaintWarnings = false;
Expand Down

0 comments on commit b77c055

Please sign in to comment.