Bug #80020 [NEW]: php_value
From: angelo dot courtel at cordongroup dot com
Operating system: Debian + Docker
PHP version: 8.0.0beta2
Package: *Configuration Issues
Bug Type: Bug
Bug description:php_value
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 bug report at https://bugs.php.net/bug.php?id=80020&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80020&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80020&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80020&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80020&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80020&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80020&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80020&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80020&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80020&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80020&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80020&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80020&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80020&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80020&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80020&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80020&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80020&r=mysqlcfg
Thread (2 messages)
- angelo dot courtel at cordongroup dot com