Use this tag for version-specific issues relating specifically to PHP 7.3.Use with the [php] tag
Questions tagged [php-7.3]
319 questions
63
votes
8 answers
Errors installing Composer on macOS (JIT compilation failed)
When I run composer --version in the macOS terminal, I get the following errors.
PHP Warning: preg_match(): JIT compilation failed: no more memory in
phar:///usr/local/bin/composer.phar/vendor/symfony/console/Application.php
on line 755
Warning:…

sheraz m
- 666
- 1
- 5
- 7
26
votes
7 answers
How to tell PHP to use SameSite=None for cross-site cookies?
According to the article here https://php.watch/articles/PHP-Samesite-cookies and PHP documenation at https://www.php.net/manual/en/session.security.ini.php, There are only 2 possible config options for this new feature, added in PHP…

Dane Iracleous
- 1,659
- 2
- 16
- 35
16
votes
2 answers
AWS Lambda Error : Error: Runtime failed to start: fork/exec /opt/bootstrap: no such file or directory
I am running the following solution from AWS Lambda,
https://aws.amazon.com/blogs/apn/aws-lambda-custom-runtime-for-php-a-practical-example/
While testing the lambda function.
sudo aws lambda invoke --function-name php-example-hello --region…

Kappa
- 1,015
- 1
- 16
- 31
15
votes
4 answers
Change mac os x default php version
In my mac (version 10.13.6 High Sierra) php -v output is PHP 7.1.32 .
I need to update this 7.1 version to 7.3.
i tried to remove this version using brew unlink php7.1 but it's not worked.
How can i upgrade php version.

C.V
- 909
- 2
- 9
- 20
14
votes
2 answers
Uncaught ErrorException: preg_match_all(): JIT compilation failed: no more memory
I just upgraded my PHP on macOS from 7.2 to 7.3 and while trying to run composer update on a project of mine, I get the error;
PHP Fatal error: Uncaught ErrorException: preg_match_all(): JIT compilation failed: no more memory
I've run a few Google…

Derick Alangi
- 1,080
- 1
- 11
- 31
10
votes
2 answers
Install imagick extension in Mac OS Catalina : php_imagick.h:42:10: fatal error: 'php.h' file not found
I've followed these steps to install imagemagick and php extension imagick in my computer with Mac OS Catalina and I can't seem to find a way.
I always get the following error when trying to install imagick with $ sudo pecl install…

Alvaro
- 40,778
- 30
- 164
- 336
9
votes
2 answers
Optimal Nginx config to handle thousands of request within seconds
What are the optimal settings for Nginx to handle LOTS of requests at the same time?
My server is configured with Nginx and PHP7.3 on Ubuntu 20.04 LTS.
Application that is running is build with Laravel 7.
This is my current config:
location ~…

user1469734
- 851
- 14
- 50
- 81
9
votes
5 answers
Install php72 on MacOS using brew
I'm trying to install php72 using brew.
Actually when I do brew install php72 it's downloading "https://homebrew.bintray.com/bottles/php-7.3.0.mojave.bottle.tar.gz".
So when I check php version it's showing me PHP 7.3.0 (cli).
How can I install…

Ugo Lfe
- 717
- 2
- 9
- 27
7
votes
2 answers
Invalid body indentation level (expecting an indentation level of at least 4)
I just upgraded to PHP 7.3 and I'm getting this error:
Invalid body indentation level (expecting an indentation level of at least 4)
Here is the code:
$html = <<
HTML test
HTML;

andrewtweber
- 24,520
- 22
- 88
- 110
7
votes
2 answers
Mac OS Mojave downgrade PHP 7.3 to 7.2.14
I have installed PHP 7.2.14 with brew.
brew install php@7.2
On CLI I have already the 7.2.14 version, but not on Apache.
What should I do, so I can remove 7.3 from my Mac and use only 7.2.14

Mutatos
- 1,675
- 4
- 25
- 55
6
votes
2 answers
Apache/PHP7.3 running in Docker randomly drops connection with empty response
I have found several similar questions:
APACHE, PHP Server return randomly empty response
https://serverfault.com/questions/66662/apache-gives-empty-reply
and others
However these does not seem to help to find the cause. I can replicate the…

Vojtěch
- 11,312
- 31
- 103
- 173
6
votes
1 answer
error when removing CSS comments via REGEX
turns out that both of these sequences (previously working)
"`([\n\A;]+)\/\*(.+?)\*\/`ism" => "$1", // error
"`([\n\A;\s]+)//(.+?)[\n\r]`ism" =>"$1\n", // error
Now throw an error in PHP 7.3
Warning: preg_replace(): Compilation failed: escape…

Christian Žagarskas
- 1,068
- 10
- 20
5
votes
1 answer
When installing php7.3-intl on debian docker gives error "has no installation candidate"
I have a wordpress installation via docker-compose. It uses php7.3 (I checked for version). Now the problem is like this : A wp function uses Locale class -> need to enable php_intl(not found in php.ini) -> tried to install php7.3-intl -> Gives…

Deepon Ghose Roy
- 71
- 1
- 5
5
votes
1 answer
How to fix yum update error: "Error: requested datatype primary not available"
I'm running a CentOS 7 web server which uses remi repository for updating php version to 7.3.
When I try to update the system using yum:
yum update
I get the following error message: Error: requested datatype primary not available
What I tried:
I…

Damon Hill
- 132
- 1
- 3
- 12
4
votes
1 answer
unserialize() Please specify classes allowed for unserialization in 2nd argument
In my Symfony application I have a User entity which is serialized. In the unserialize() method, I did this:
public function unserialize($serialized)
{
[
$this->id,
$this->email,
$this->password,
…

eronn
- 1,690
- 3
- 21
- 53