forked from facebook/hhvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hphpd] add print_r format to print command
Summary: We have a level limit on print command but, the '=' cmd could still trigger a huge serialization since it could endup in print_r() with no checking on serialization limit. But print_r() format is generally prettier than var_dump format used by print command. This diff adds print_r format to print command and uses it as default, var_dump format can be used by: p v $toprint. So mostly people should stick to print command, instead of '='. This diff also makes sure when '=' is trying to serialize, it observe the serialization limit and fail faster. Test Plan: make fast_tests manually verified with a few cases including the error case in hphpi Reviewers: myang, mwilliams Reviewed By: myang CC: ps, mwilliams, myang Differential Revision: 342394 Task ID: 754526
- Loading branch information
qigao
authored and
macvicar
committed
Oct 18, 2011
1 parent
d5c2d1c
commit f7457f5
Showing
3 changed files
with
18 additions
and
7 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