Skip to content

auto_prepend_file value changing by itself, so post values sometimes appear on the page #16671

@imcagri

Description

@imcagri

Description

Hello,
I'm using PHP Version 8.3.13 with Docker(php:8.3.13-fpm)
First I thought problem was coming from alpine linux(php:8.3.13-fpm-alpine). Then i deleted it used debian based image. But result is same.

auto_prepend_file sometimes no-value sometimes php://input

When i want to login to my website, sometimes submit values showing on top of the page. Not only login. Every post forms.
sh

Dockerfile
`FROM php:8.3.13-fpm

RUN apt-get update && apt-get install -y --no-install-recommends
libintl-perl
libicu-dev
libzip-dev
libonig-dev
libpng-dev
zip
unzip
libwebp-dev
libjpeg-dev
libfreetype6-dev
curl
autoconf
g++
imagemagick
libmagickwand-dev
libtool
make
libpcre3-dev
file
pkg-config
git &&
docker-php-ext-install pdo_mysql exif bcmath mysqli zip &&
docker-php-ext-install -j$(nproc) intl mbstring &&
docker-php-ext-configure gd --with-freetype --with-jpeg &&
docker-php-ext-install gd

RUN git clone https://github.com/Imagick/imagick.git /usr/src/php/ext/imagick &&
cd /usr/src/php/ext/imagick &&
phpize &&
./configure &&
make &&
make install &&
docker-php-ext-enable imagick

RUN apt-get purge -y --auto-remove
autoconf
g++
libtool
make
libpcre3-dev
git

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

COPY ./certs/elasticsearch/elastic/elastic.crt /etc/ssl/certs
RUN echo "cacert = /etc/ssl/certs/elastic.crt" >> ~/.curlrc

CMD ["php-fpm"]`

The following code:

<?php

Resulted in this output:

But I expected this output instead:

PHP Version

PHP 8.3.13

Operating System

Debian

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions