Skip to content
Advertisement

Tag: php-7.4

Is blacklist of opcache ignored when file_cache is enabled?

I am using php-fpm 7.4.3 on ubuntu 20.04. My blacklist of opcache doesn’t work at all. Scripts I visited are cached when file_cache is enabled. Here’s my configures. php.ini opcache_blacklist.txt test.php Some information from test.php There is a strange thing: everytime I refresh the test.php, blacklist_misses is increased by 1. If I disable file_cache (opcache.file_cache=) in php.ini, num_cached_scripts and num_cached_keys

PHP switch statement problem causes a syntax error [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 9 months ago. This post was

Can not install php7.4-soap on Debian 9

I am using Debian 9, and I recently upgraded PHP from 5.6 to 7.4. I was hit by the Class ‘SoapClient’ not found error when running an old PHP script, which worked very well under PHP 5.6. The phpinfo() lists “SOAP” module but it doesn’t have a dedicated “soap” section with “Soap Client” listed (as mentioned here). I believe the

Migrate to PHP 8.0: Unbinding $this when $this is used

Step by step, I am migrating my project(s) from PHP 7.1 to PHP 8.0. In the official PHP manual, in the subchapter “Deprecated Features” of the chapter “Migrating from PHP 7.3.x to PHP 7.4.x”, I tried to understand the following deprecation description: Unbinding $this when $this is used Unbinding $this of a non-static closure that uses $this is deprecated. Though,

Advertisement