Skip to content

Commit

Permalink
drop support for PHP 5
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Jan 23, 2024
1 parent 83d91a8 commit dcb88e5
Show file tree
Hide file tree
Showing 25 changed files with 6 additions and 3,342 deletions.
17 changes: 1 addition & 16 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,7 @@ PHP_ARG_ENABLE(dio, whether to enable direct I/O support,
[ --enable-dio Enable direct I/O support])

if test "$PHP_DIO" != "no"; then
AC_MSG_CHECKING(PHP version)

export OLD_CPPFLAGS="$CPPFLAGS"
export CPPFLAGS="$CPPFLAGS $INCLUDES"
AC_TRY_COMPILE([#include <php_version.h>], [
#if PHP_MAJOR_VERSION > 5
#error PHP > 5
#endif
], [
subdir=php5
AC_MSG_RESULT([PHP 5.x])
], [
subdir=php7
AC_MSG_RESULT([PHP 7.x])
])
export CPPFLAGS="$OLD_CPPFLAGS"
subdir=src
PHP_DIO_SOURCES="
$subdir/dio.c \
$subdir/dio_common.c \
Expand Down
6 changes: 1 addition & 5 deletions config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ ARG_ENABLE("dio", "Enable the direct I/O support", "no");
if (PHP_DIO != "no") {
var old_conf_dir = configure_module_dirname;

if (PHP_VERSION <= 5) {
configure_module_dirname = configure_module_dirname + "\\php5";
} else {
configure_module_dirname = configure_module_dirname + "\\php7";
}
configure_module_dirname = configure_module_dirname + "\\src";

EXTENSION("dio", "dio.c dio_common.c dio_win32.c dio_stream_wrappers.c");
configure_module_dirname = old_conf_dir;
Expand Down
21 changes: 4 additions & 17 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ more than adequate.
</stability>
<license uri="https://www.php.net/license/3_01.txt" filesource="LICENSE">PHP-3.01</license>
<notes>
-
- drop PHP 5 support
</notes>
<contents>
<dir name="/">
Expand All @@ -63,20 +63,7 @@ more than adequate.
<file name="LICENSE" role="doc" />
<file name="config.m4" role="src" />
<file name="config.w32" role="src" />
<dir name="php5">
<file name="dio.c" role="src" />
<file name="dio_common.c" role="src" />
<file name="dio_posix.c" role="src" />
<file name="dio_win32.c" role="src" />
<file name="dio_stream_wrappers.c" role="src" />
<file name="php_dio.h" role="src" />
<file name="php_dio_common.h" role="src" />
<file name="php_dio_common_data.h" role="src" />
<file name="php_dio_posix.h" role="src" />
<file name="php_dio_win32.h" role="src" />
<file name="php_dio_stream_wrappers.h" role="src" />
</dir>
<dir name="php7">
<dir name="src">
<file name="dio.c" role="src" />
<file name="dio_common.c" role="src" />
<file name="dio_posix.c" role="src" />
Expand All @@ -94,10 +81,10 @@ more than adequate.
<dependencies>
<required>
<php>
<min>5.3.3</min>
<min>7.0.0</min>
</php>
<pearinstaller>
<min>1.9.4</min>
<min>1.10.0</min>
</pearinstaller>
</required>
</dependencies>
Expand Down
Loading

0 comments on commit dcb88e5

Please sign in to comment.