mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Add parenthesis around preprocessor conditions in stubs
gen_stub.php concatenates nested #ifs into one #if so let's make sure the semantics remain the same.
This commit is contained in:
parent
cfa72ff3af
commit
e733ebf30e
12 changed files with 102 additions and 102 deletions
|
@ -1340,7 +1340,7 @@ function gethostbyname(string $hostname): string {}
|
|||
*/
|
||||
function gethostbynamel(string $hostname): array|false {}
|
||||
|
||||
#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)
|
||||
#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC))
|
||||
function dns_check_record(string $hostname, string $type = "MX"): bool {}
|
||||
|
||||
/** @alias dns_check_record */
|
||||
|
@ -1370,7 +1370,7 @@ function getmxrr(string $hostname, &$hosts, &$weights = null): bool {}
|
|||
|
||||
/* net.c */
|
||||
|
||||
#if defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__)
|
||||
#if (defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__))
|
||||
function net_get_interfaces(): array|false {}
|
||||
#endif
|
||||
|
||||
|
@ -1769,7 +1769,7 @@ function closedir($dir_handle = null): void {}
|
|||
|
||||
function chdir(string $directory): bool {}
|
||||
|
||||
#if defined(HAVE_CHROOT) && !defined(ZTS) && defined(ENABLE_CHROOT_FUNC)
|
||||
#if (defined(HAVE_CHROOT) && !defined(ZTS) && defined(ENABLE_CHROOT_FUNC))
|
||||
function chroot(string $directory): bool {}
|
||||
#endif
|
||||
|
||||
|
@ -2186,7 +2186,7 @@ function levenshtein(string $string1, string $string2, int $insertion_cost = 1,
|
|||
|
||||
/* link.c */
|
||||
|
||||
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32)
|
||||
#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32))
|
||||
/** @refcount 1 */
|
||||
function readlink(string $path): string|false {}
|
||||
|
||||
|
@ -2590,7 +2590,7 @@ function sapi_windows_vt100_support($stream, ?bool $enable = null): bool {}
|
|||
/** @param resource $stream */
|
||||
function stream_set_chunk_size($stream, int $size): int {}
|
||||
|
||||
#if defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32)
|
||||
#if (defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32))
|
||||
/** @param resource $stream */
|
||||
function stream_set_timeout($stream, int $seconds, int $microseconds = 0): bool {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue