This repository has been archived by the owner on Jun 4, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cmf] update the way constants are handled in data/php_stdlib/
Summary: Hphp people have changed (again) the way builtins are handled. Test Plan: cd pfff/data/php_stdlib make update make check see no dupes also some recent builtins mentioned in phabricator lint errors such as JSON_PRETTY_PRINT are in the generate system/constants.php file Reviewers: jwatzman, pieter Reviewed By: jwatzman CC: sgolemon, neal, bryano, ps, erling Differential Revision: https://phabricator.fb.com/D1174028
- Loading branch information
pad
committed
Feb 13, 2014
1 parent
68ff7fe
commit acd2e99
Showing
11 changed files
with
22 additions
and
815 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
$arr = get_defined_constants(); | ||
ksort($arr); | ||
|
||
echo "<?php\n"; | ||
foreach ($arr as $k => $v) { | ||
$v = $v ? $v : -1; | ||
echo "define('$k', "; | ||
var_export($v); | ||
//echo "0"; | ||
echo ");\n"; | ||
} |
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
Oops, something went wrong.