-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Move constants from dir.c to stub file #13312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
57e9597
Move some dir constants to stub file
0c9ed92
Move macro definitions to php_dir.h and two more constant registratio…
7cbe1f1
Register some constants only if their values are not zero
69677b6
Add internal dir header file
cdfdffe
Undo changes to php_dir.h
f8bc95e
Add parentheses around conditions
f74b63a
Correct parentheses
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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,65 @@ | ||
/* | ||
+----------------------------------------------------------------------+ | ||
| Copyright (c) The PHP Group | | ||
+----------------------------------------------------------------------+ | ||
| This source file is subject to version 3.01 of the PHP license, | | ||
| that is bundled with this package in the file LICENSE, and is | | ||
| available through the world-wide-web at the following url: | | ||
| https://www.php.net/license/3_01.txt | | ||
| If you did not receive a copy of the PHP license and are unable to | | ||
| obtain it through the world-wide-web, please send a note to | | ||
| license@php.net so we can mail you a copy immediately. | | ||
+----------------------------------------------------------------------+ | ||
*/ | ||
|
||
#ifndef PHP_DIR_INT_H | ||
#define PHP_DIR_INT_H | ||
|
||
#ifdef HAVE_GLOB | ||
#ifndef PHP_WIN32 | ||
#include <glob.h> | ||
#else | ||
#include "win32/glob.h" | ||
#endif | ||
#endif | ||
|
||
#ifdef HAVE_GLOB | ||
|
||
#ifndef GLOB_BRACE | ||
#define GLOB_BRACE 0 | ||
#endif | ||
|
||
#ifndef GLOB_ERR | ||
#define GLOB_ERR 0 | ||
#endif | ||
|
||
#ifndef GLOB_MARK | ||
#define GLOB_MARK 0 | ||
#endif | ||
|
||
#ifndef GLOB_NOCHECK | ||
#define GLOB_NOCHECK 0 | ||
#endif | ||
|
||
#ifndef GLOB_NOESCAPE | ||
#define GLOB_NOESCAPE 0 | ||
#endif | ||
|
||
#ifndef GLOB_NOSORT | ||
#define GLOB_NOSORT 0 | ||
#endif | ||
|
||
#ifndef GLOB_ONLYDIR | ||
#define GLOB_ONLYDIR (1<<30) | ||
#define GLOB_EMULATE_ONLYDIR | ||
#define GLOB_FLAGMASK (~GLOB_ONLYDIR) | ||
#else | ||
#define GLOB_FLAGMASK (~0) | ||
#endif | ||
|
||
/* This is used for checking validity of passed flags (passing invalid flags causes segfault in glob()!! */ | ||
#define GLOB_AVAILABLE_FLAGS (0 | GLOB_BRACE | GLOB_MARK | GLOB_NOSORT | GLOB_NOCHECK | GLOB_NOESCAPE | GLOB_ERR | GLOB_ONLYDIR) | ||
|
||
#endif /* HAVE_GLOB */ | ||
|
||
#endif /* PHP_DIR_INT_H */ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.