mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
60a69daec6
This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
45 lines
1.8 KiB
JavaScript
45 lines
1.8 KiB
JavaScript
// vim:ft=javascript
|
|
// $Id$
|
|
|
|
ARG_WITH("password-argon2", "Argon2 support", "no");
|
|
|
|
if (PHP_PASSWORD_ARGON2 != "no") {
|
|
if (CHECK_LIB("argon2_a.lib;argon2.lib", null, PHP_PASSWORD_ARGON2)
|
|
&& CHECK_HEADER_ADD_INCLUDE("argon2.h", "CFLAGS")) {
|
|
AC_DEFINE('HAVE_ARGON2LIB', 1);
|
|
if (CHECK_FUNC_IN_HEADER("argon2.h", "argon2id_hash_raw", PHP_PHP_BUILD + "\\include", "CFLAGS")) {
|
|
AC_DEFINE('HAVE_ARGON2ID', 1);
|
|
}
|
|
} else {
|
|
WARNING("Argon2 not enabled; libaries and headers not found");
|
|
}
|
|
}
|
|
|
|
ARG_WITH("config-file-scan-dir", "Dir to check for additional php ini files", "");
|
|
|
|
AC_DEFINE("PHP_CONFIG_FILE_SCAN_DIR", PHP_CONFIG_FILE_SCAN_DIR);
|
|
AC_DEFINE("PHP_USE_PHP_CRYPT_R", 1);
|
|
|
|
CHECK_HEADER_ADD_INCLUDE("timelib_config.h", "CFLAGS_STANDARD", "ext/date/lib");
|
|
|
|
EXTENSION("standard", "array.c base64.c basic_functions.c browscap.c \
|
|
crc32.c crypt.c crypt_freesec.c crypt_blowfish.c crypt_sha256.c \
|
|
crypt_sha512.c php_crypt_r.c \
|
|
cyr_convert.c datetime.c dir.c dl.c dns.c dns_win32.c exec.c \
|
|
file.c filestat.c formatted_print.c fsock.c head.c html.c image.c \
|
|
info.c iptc.c lcg.c link_win32.c mail.c math.c md5.c metaphone.c microtime.c \
|
|
pack.c pageinfo.c quot_print.c rand.c mt_rand.c soundex.c \
|
|
string.c scanf.c syslog.c type.c uniqid.c url.c var.c \
|
|
versioning.c assert.c strnatcmp.c levenshtein.c incomplete_class.c \
|
|
url_scanner_ex.c ftp_fopen_wrapper.c http_fopen_wrapper.c \
|
|
php_fopen_wrapper.c credits.c css.c var_unserializer.c ftok.c sha1.c \
|
|
user_filters.c uuencode.c filters.c proc_open.c password.c \
|
|
streamsfuncs.c http.c flock_compat.c random.c", false /* never shared */,
|
|
'/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
|
|
PHP_INSTALL_HEADERS("", "ext/standard");
|
|
if (PHP_MBREGEX != "no") {
|
|
CHECK_HEADER_ADD_INCLUDE("oniguruma.h", "CFLAGS_STANDARD", PHP_MBREGEX + ";ext\\mbstring\\oniguruma")
|
|
}
|
|
ADD_MAKEFILE_FRAGMENT();
|
|
PHP_INSTALL_HEADERS("", "ext/standard");
|