Skip to content

Commit 8391530

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
2 parents dab5f8c + 868257a commit 8391530

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

build/libtool.m4

+5-5
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ dnl This sometimes fails to find confdefs.h, for some reason.
277277
dnl [#]line __oline__ "[$]0"
278278
[#]line __oline__ "configure"
279279
#include "confdefs.h"
280-
int main() {
280+
int main(void) {
281281
; return 0; }
282282
EOF
283283
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
@@ -978,8 +978,8 @@ else
978978
# endif
979979
#endif
980980
981-
void fnord() { int i=42;}
982-
int main ()
981+
void fnord(void) { int i=42;}
982+
int main (void)
983983
{
984984
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
985985
int status = $lt_dlunknown;
@@ -2750,7 +2750,7 @@ _LT_AC_TAGVAR(objext, $1)=$objext
27502750
lt_simple_compile_test_code="int some_variable = 0;"
27512751
27522752
# Code to be used in simple link tests
2753-
lt_simple_link_test_code='int main(){return(0);}'
2753+
lt_simple_link_test_code='int main(void){return(0);}'
27542754
27552755
_LT_AC_SYS_COMPILER
27562756
@@ -4640,7 +4640,7 @@ void nm_test_func(){}
46404640
#ifdef __cplusplus
46414641
}
46424642
#endif
4643-
int main(){nm_test_var='a';nm_test_func();return(0);}
4643+
int main(void){nm_test_var='a';nm_test_func();return(0);}
46444644
EOF
46454645
46464646
if AC_TRY_EVAL(ac_compile); then

build/ltmain.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3598,7 +3598,7 @@ EOF
35983598
# whether they linked in statically or dynamically with ldd.
35993599
$rm conftest.c
36003600
cat > conftest.c <<EOF
3601-
int main() { return 0; }
3601+
int main(void) { return 0; }
36023602
EOF
36033603
$rm conftest
36043604
if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then

build/php.m4

+7-7
Original file line numberDiff line numberDiff line change
@@ -1261,27 +1261,27 @@ dnl PHP_MISSING_TIME_R_DECL
12611261
dnl
12621262
AC_DEFUN([PHP_MISSING_TIME_R_DECL],[
12631263
AC_MSG_CHECKING([for missing declarations of reentrant functions])
1264-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[struct tm *(*func)() = localtime_r]])],[
1264+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[struct tm *(*func)(void) = localtime_r]])],[
12651265
:
12661266
],[
12671267
AC_DEFINE(MISSING_LOCALTIME_R_DECL,1,[Whether localtime_r is declared])
12681268
])
1269-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[struct tm *(*func)() = gmtime_r]])],[
1269+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[struct tm *(*func)(void) = gmtime_r]])],[
12701270
:
12711271
],[
12721272
AC_DEFINE(MISSING_GMTIME_R_DECL,1,[Whether gmtime_r is declared])
12731273
])
1274-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[char *(*func)() = asctime_r]])],[
1274+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[char *(*func)(void) = asctime_r]])],[
12751275
:
12761276
],[
12771277
AC_DEFINE(MISSING_ASCTIME_R_DECL,1,[Whether asctime_r is declared])
12781278
])
1279-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[char *(*func)() = ctime_r]])],[
1279+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[char *(*func)(void) = ctime_r]])],[
12801280
:
12811281
],[
12821282
AC_DEFINE(MISSING_CTIME_R_DECL,1,[Whether ctime_r is declared])
12831283
])
1284-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]], [[char *(*func)() = strtok_r]])],[
1284+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <string.h>]], [[char *(*func)(void) = strtok_r]])],[
12851285
:
12861286
],[
12871287
AC_DEFINE(MISSING_STRTOK_R_DECL,1,[Whether strtok_r is declared])
@@ -1315,7 +1315,7 @@ dnl See if we have broken header files like SunOS has.
13151315
dnl
13161316
AC_DEFUN([PHP_MISSING_FCLOSE_DECL],[
13171317
AC_MSG_CHECKING([for fclose declaration])
1318-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[int (*func)() = fclose]])],[
1318+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[int (*func)(void) = fclose]])],[
13191319
AC_DEFINE(MISSING_FCLOSE_DECL,0,[ ])
13201320
AC_MSG_RESULT([ok])
13211321
],[
@@ -1643,7 +1643,7 @@ AC_DEFUN([PHP_TEST_BUILD], [
16431643
LIBS="$4 $LIBS"
16441644
AC_LINK_IFELSE([AC_LANG_SOURCE([[
16451645
$5
1646-
char $1();
1646+
char $1(void);
16471647
int main(void) {
16481648
$1();
16491649
return 0;

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ case $host_alias in
11351135
save_LDFLAGS=$LDFLAGS
11361136
LDFLAGS="$LDFLAGS -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152"
11371137
AC_RUN_IFELSE(
1138-
[AC_LANG_SOURCE([[int main() {return 0;}]])],
1138+
[AC_LANG_PROGRAM()],
11391139
[ac_cv_common_page_size=yes],
11401140
[ac_cv_common_page_size=no],
11411141
[ac_cv_common_page_size=no])
@@ -1149,7 +1149,7 @@ case $host_alias in
11491149
save_LDFLAGS=$LDFLAGS
11501150
LDFLAGS="$LDFLAGS -Wl,-zmax-page-size=2097152"
11511151
AC_RUN_IFELSE(
1152-
[AC_LANG_SOURCE([[int main() {return 0;}]])],
1152+
[AC_LANG_PROGRAM()],
11531153
[ac_cv_max_page_size=yes],
11541154
[ac_cv_max_page_size=no],
11551155
[ac_cv_max_page_size=no])

0 commit comments

Comments
 (0)