Bug #80020 [Opn->Csd]: php_value
Edit report at https://bugs.php.net/bug.php?id=80020&edit=1
ID: 80020
User updated by: angelo dot courtel at laposte dot net
Reported by: angelo dot courtel at laposte dot net
Summary: php_value
-Status: Open
+Status: Closed
Type: Bug
Package: *Configuration Issues
Operating System: Debian + Docker
PHP Version: 8.0.0beta2
Block user comment: N
Private report: N
New Comment:
Hello,
After upgrading in 8.0.0beta3, this bug is fixed.
Thanks
BR
Previous Comments:
------------------------------------------------------------------------
[2020-08-26 13:04:53] angelo dot courtel at laposte dot net
Description:
------------
Hello, few days ago, I've submit a bug #80013 about memcached session handler.
I hadn't been able to pinpoint the exact cause of the problem. Today I found out what was wrong
with my memcached session management.
We happen to use the php_value directive in our apache configuration. And it's this directive
that is the problem.
Here is a very simple docker container that changes a random option (max_input_vars). When the
service is started, the access to index.php has the value of max_input_var.
At the first call the value is good with 1234, at the second call it returns to 1000 (PHP default
value).
When I open a private browsing, without shutting down the service, the value is good again, then bad
at the second call.
When I pause for one minute (to end the keepalive), the value becomes good again, then bad.
If I restart the service from the php:apache version, I don't note this bad behavior with a
value always at 1234.
Test script:
---------------
Dockerfile php8:
FROM php:rc-apache
RUN sed -i "/Include /c\php_value max_input_vars '1234'"
/etc/apache2/sites-enabled/000-default.conf \
&& echo '<pre><?= ini_get("max_input_vars");' >
/var/www/html/index.php
Command php8 :
docker build . -t test8_php_value
docker run -p "9980:80" test8_php_value
Dockerfile php7:
FROM php:apache
RUN sed -i "/Include /c\php_value max_input_vars '1234'"
/etc/apache2/sites-enabled/000-default.conf \
&& echo '<pre><?= ini_get("max_input_vars");' >
/var/www/html/index.php
Command php7 :
docker build . -t test7_php_value
docker run -p "9974:80" test7_php_value
Expected result:
----------------
1234
Actual result:
--------------
1000
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80020&edit=1
Thread (2 messages)