andreios
Regular Pleskian
Username:
TITLE
PHP FPM 8.2.17 is not accurately checking cached files for changes
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian, 18.0.59 Update #2, Ubuntu 22.04.4 LTS Linux 5.15.0-97-generic #107 x86_64
PROBLEM DESCRIPTION
PHP 8.2.17 is not checking files of changes during runtime. Only after a restart which resets the opcache.
STEPS TO REPRODUCE
Activate PHP FPM version 8.2.17 and use it an your test hosting as nginx aplication not using proxy. It should make no difference but at least I used nginx.
Create a file in / called systeminfo.php with these content:
Go to your example website to the url example.com/systeminfo.php and see that i prints a line with information about your host like host name and versions.
Now change file content of the file to this:
Save it, and refresh the the site with example.com/systeminfo.php
ACTUAL RESULT
You will see the same information as before. The file is cached by PHP.
EXPECTED RESULT
Now restart the corresponding PHP FPM Service on your host, and you will see, when you take another look at /systeminfo.php it only shows the host name. As expected.
ANY ADDITIONAL INFORMATION
I have downgraded everything on my Server to PHP 8.1.27, where this issue is not present.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
PHP FPM 8.2.17 is not accurately checking cached files for changes
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian, 18.0.59 Update #2, Ubuntu 22.04.4 LTS Linux 5.15.0-97-generic #107 x86_64
PROBLEM DESCRIPTION
PHP 8.2.17 is not checking files of changes during runtime. Only after a restart which resets the opcache.
STEPS TO REPRODUCE
Activate PHP FPM version 8.2.17 and use it an your test hosting as nginx aplication not using proxy. It should make no difference but at least I used nginx.
Create a file in / called systeminfo.php with these content:
Code:
<?php
function getSystemValue() {
return php_uname();
}
echo getSystemValue();
?>
Now change file content of the file to this:
Code:
<?php
function getSystemValue() {
return php_uname(n);
}
echo getHostname();
?>
ACTUAL RESULT
You will see the same information as before. The file is cached by PHP.
EXPECTED RESULT
Now restart the corresponding PHP FPM Service on your host, and you will see, when you take another look at /systeminfo.php it only shows the host name. As expected.
ANY ADDITIONAL INFORMATION
I have downgraded everything on my Server to PHP 8.1.27, where this issue is not present.
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug