Skip to content

Commit 168caf5

Browse files
delfertianon
authored andcommitted
Enabled large file support (affects 32bit systems)
Build flags added: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 According to https://www.php.net/manual/en/intro.filesystem.php
1 parent 9b073b8 commit 168caf5

File tree

51 files changed

+51
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+51
-51
lines changed

7.1/alpine3.10/cli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RUN set -eux; \
5555
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5656
# Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated)
5757
# https://github.com/docker-library/php/issues/272
58-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
58+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
5959
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6060
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6161

7.1/alpine3.10/fpm/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr
5656
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5757
# Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated)
5858
# https://github.com/docker-library/php/issues/272
59-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
59+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6060
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6161
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6262

7.1/alpine3.10/zts/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi
5656
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5757
# Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated)
5858
# https://github.com/docker-library/php/issues/272
59-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
59+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6060
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6161
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6262

7.1/alpine3.9/cli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RUN set -eux; \
5555
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5656
# Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated)
5757
# https://github.com/docker-library/php/issues/272
58-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
58+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
5959
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6060
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6161

7.1/alpine3.9/fpm/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr
5656
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5757
# Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated)
5858
# https://github.com/docker-library/php/issues/272
59-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
59+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6060
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6161
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6262

7.1/alpine3.9/zts/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi
5656
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5757
# Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated)
5858
# https://github.com/docker-library/php/issues/272
59-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
59+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6060
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6161
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6262

7.1/buster/apache/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi
117117
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
118118
# Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated)
119119
# https://github.com/docker-library/php/issues/272
120-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
120+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
121121
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
122122
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
123123

7.1/buster/cli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ RUN set -eux; \
5757
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5858
# Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated)
5959
# https://github.com/docker-library/php/issues/272
60-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
60+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6161
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6262
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6363

7.1/buster/fpm/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr
5858
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5959
# Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated)
6060
# https://github.com/docker-library/php/issues/272
61-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
61+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6262
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6363
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6464

7.1/buster/zts/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi
5858
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5959
# Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated)
6060
# https://github.com/docker-library/php/issues/272
61-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
61+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6262
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6363
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6464

0 commit comments

Comments
 (0)