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
Tag: php-7.4
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
Xdebug always listening for new requests and prevents webpages from loading in case I don’t listen
I have a strange setup on my new workplace and it works like this: if I have PhpStorm running and have “Start Listening for PHP Debug Connections” on, then my local PHP application works fine. As soon as I close PhpStorm completely (and consequently stop listening to PHP debug connections), then my webpage is not loading (nginx times out after
Always get related model of relationship model in Laravel Eloquent
I have three Eloquent Models: Company, OrdersArea and Localization where a company has many orders areas and orders area always have one localization. I need to getting the Orders Area model to always load with Localization If I do that: I gets Company of logged user without OrdersArea and it’s ok. and next I could do: and then I have
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
How to compile pcntl for PHP 7.4 and above?
I am attempting to compile the pcntl extension for PHP 7.4 and PHP 8 with the following commands (from Mac): wget “https://www.php.net/distributions/php-7.4.0.tar.gz” tar xvf “php-7.4.0….
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,
Why I can’t connect to a MySQL 5.3.36 shared server using mysqli_connect and PHP 7.4, but it will work using php 7.1?
I have this shared account on Hostgator. Using PHP 7.1 and mysqli_connect, I have no issue connecting to the MySQL 5.3.36 database. The PHP script should be fine. The hosting company sent me an email …
Make abstract class method only publicly accessible from child classes
First off, we’re talking about PHP 7.4.10, but any general intel is appreaciated! Summarized question: I’d like to define a static method in an abstract class in such a way, that the method can only …
AMPHP – Queueing more Tasks than available Workers in Pool
I have a project in which I am converting a large amount of .tif images into PDF documents. File count goes into millions. To speed up the process I am using Amphp. Since the process of converting the images with Imagemagick takes up some cpu power I want to limit the maximum amount of parallel running converter processes. My first