]> granicus.if.org Git - php/commit
Replace obsolete AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV
authorPeter Kokot <petk@php.net>
Sun, 29 Jul 2018 11:12:33 +0000 (13:12 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Sun, 29 Jul 2018 11:59:40 +0000 (13:59 +0200)
commitd2184efb7be1b3bfb355e4a6e671ceacc3896eeb
tree0b241432aacd67a34c016f440e158d112e5c51e4
parentd7ad4babe0f3d1d050b7acbdb2b43794653de47f
Replace obsolete AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV

Autoconf 2.50 released in 2001 has made several macros obsolete. Instead
of the AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV the new
AC_CHECK_MEMBERS should be used.

When checking for the presence of stat struct members st_blkzize and
st_rdev the new AC_CHECK_MEMBERS macro defines new constants
HAVE_STRUCT_STAT_ST_BLKSIZE and HAVE_STRUCT_STAT_ST_RDEV.

Old constants HAVE_ST_BLKSIZE and HAVE_ST_RDEV need to be replaced
respectively in PHP code (this patch) and in PHP extenstions if they use
them.

PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require
2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which
are all greater than above mentioned 2.50 version.
configure.ac
ext/phar/func_interceptors.c
ext/standard/file.c
ext/standard/filestat.c
ext/standard/ftp_fopen_wrapper.c
main/streams/userspace.c
win32/build/config.w32.h.in