Bug #77594 [Opn]: ob_tidyhandler flips tidy.clean_output option for lifetime of php-fpm process
| From: | kalle@php.net | Date: | Sun, 10 Feb 2019 02:10:54 +0000 |
| Subject: | Bug #77594 [Opn]: ob_tidyhandler flips tidy.clean_output option for lifetime of php-fpm process | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-219463@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77594&edit=1
ID: 77594
Updated by: kalle@php.net
Reported by: da dot net dot php dot bugs at daniel dot priv dot
no
Summary: ob_tidyhandler flips tidy.clean_output option for
lifetime of php-fpm process
Status: Open
Type: Bug
Package: Unknown/Other Function
Operating System: Linux
PHP Version: 7.2.15
Block user comment: N
Private report: N
New Comment:
Seems like the option is not reset at the module RINIT and therefore persists
Previous Comments:
------------------------------------------------------------------------
[2019-02-10 00:43:00] da dot net dot php dot bugs at daniel dot priv dot no
Description:
------------
1. Set tidy.clean_output = Off in php.ini.
2. Run ob_start('ob_tidyhandler'); in testA.php
The page is output with cleaned output as expected.
3. Run any other PHP file without calling the same function.
The output is also unexpectedly cleaned. The option is unexpectedly flipped for every subsequent
request processed by the same php-fpm process.
I may be wrong (C isn't my strongest language), but I believe this just flips the option.
https://github.com/php/php-src/blob/db0079023421b8048f090ee04adb992e09132553/ext/tidy/tidy.c#L1172
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77594&edit=1