mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Change calls to setmode to _setmode (#14220)
setmode is the deprecated alias of _setmode [1]. [1] https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/posix-setmode?view=msvc-170
This commit is contained in:
parent
173f51365d
commit
a95d001a8a
4 changed files with 12 additions and 12 deletions
|
@ -1779,9 +1779,9 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
#ifdef PHP_WIN32
|
#ifdef PHP_WIN32
|
||||||
_fmode = _O_BINARY; /* sets default for file streams to binary */
|
_fmode = _O_BINARY; /* sets default for file streams to binary */
|
||||||
setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
|
_setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
|
||||||
setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */
|
_setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */
|
||||||
setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
|
_setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!fastcgi) {
|
if (!fastcgi) {
|
||||||
|
|
|
@ -1240,9 +1240,9 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
#ifdef PHP_WIN32
|
#ifdef PHP_WIN32
|
||||||
_fmode = _O_BINARY; /*sets default for file streams to binary */
|
_fmode = _O_BINARY; /*sets default for file streams to binary */
|
||||||
setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
|
_setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
|
||||||
setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */
|
_setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */
|
||||||
setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
|
_setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
php_ini_builder_init(&ini_builder);
|
php_ini_builder_init(&ini_builder);
|
||||||
|
|
|
@ -194,9 +194,9 @@ EMBED_SAPI_API int php_embed_init(int argc, char **argv)
|
||||||
|
|
||||||
#ifdef PHP_WIN32
|
#ifdef PHP_WIN32
|
||||||
_fmode = _O_BINARY; /*sets default for file streams to binary */
|
_fmode = _O_BINARY; /*sets default for file streams to binary */
|
||||||
setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
|
_setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
|
||||||
setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */
|
_setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */
|
||||||
setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
|
_setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* This hard-coded string of INI settings is parsed and read into PHP's
|
/* This hard-coded string of INI settings is parsed and read into PHP's
|
||||||
|
|
|
@ -1154,9 +1154,9 @@ int main(int argc, char **argv) /* {{{ */
|
||||||
|
|
||||||
#ifdef PHP_WIN32
|
#ifdef PHP_WIN32
|
||||||
_fmode = _O_BINARY; /* sets default for file streams to binary */
|
_fmode = _O_BINARY; /* sets default for file streams to binary */
|
||||||
setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
|
_setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
|
||||||
setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */
|
_setmode(_fileno(stdout), O_BINARY); /* make the stdio mode be binary */
|
||||||
setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
|
_setmode(_fileno(stderr), O_BINARY); /* make the stdio mode be binary */
|
||||||
#else
|
#else
|
||||||
struct sigaction signal_struct;
|
struct sigaction signal_struct;
|
||||||
signal_struct.sa_sigaction = phpdbg_signal_handler;
|
signal_struct.sa_sigaction = phpdbg_signal_handler;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue