Questions tagged [php-7.2]

Use this tag for version-specific issues relating specifically to PHP 7.2.Use with the [php] tag

Deprecations: https://wiki.php.net/rfc/deprecations_php_7_2

GA release is scheduled for 2017-11-30: https://wiki.php.net/todo/php72#timetable

724 questions
7
votes
2 answers

sudo: pecl7.2-sp: command not found

I need to install GeoIP on PHP 7.2 . For this I am using following commands - sudo apt-get -y install gcc make autoconf libc-dev pkg-config sudo apt-get -y install libgeoip-dev sudo pecl7.2-sp install geoip-beta Top two commands are run…
Rahul Gaikwad
  • 563
  • 4
  • 9
  • 26
7
votes
2 answers

PHP 7.2 and modules 'dom', 'mbstring', and 'simplexml'

I installed PHP 7.2 on my server and everything works fine except these three issues: I face these problems: The PHP extension dom is not loaded. Please contact your server administrator or visit http://php.net/manual/en/dom.installation.php …
Ali
  • 101
  • 1
  • 1
  • 5
7
votes
3 answers

Installing mongoDB driver php 7.2.3

I am trying to install the mongoDB driver for PHP 7.2.3 x86. I installed the PHP 7.2 Non Thread Safe driver here: https://pecl.php.net/package/mongodb/1.4.2/windows I have put the mongodb.dll file in the php/ext and put ;extension=mongodb in the…
Hoxlegion
  • 277
  • 1
  • 3
  • 14
7
votes
2 answers

phpMyAdmin errors (count, blowfish, etc.) after php7.2 upgrade on Ubuntu 16

phpMyAdmin errors after php7.2 upgrade After upgrading to php7.2 on Ubuntu 16.04 LTS, phpMyAdmin shows annoying popup warnings when I view tables: "Some errors have been detected on the server! Please look at the bottom of this window. Ignore All.…
Justin
  • 663
  • 7
  • 19
6
votes
1 answer

Unable to run phpdoc command after installing phpdoc/phpDocumentor package

Although I followed the instruction to install phpDocumentor, Command line doesn't seem to respond to phpdoc Given error: Command 'phpdoc' not found, did you mean: command 'phploc' from deb phploc command 'phpdox' from deb phpdox Try: sudo apt…
Agil
  • 376
  • 5
  • 26
6
votes
2 answers

How to add a Path to update-alternatives --config php

I'm working on a Ubuntu 16 machine: lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.6 LTS Release: 16.04 Codename: xenial My experience with Ubuntu is "medium". I needed to change the…
Julian
  • 4,396
  • 5
  • 39
  • 51
6
votes
1 answer

MCrypt rijndael-256 to OpenSSL aes-256-ecb conversion

Since Mcrypt is deprecated, I want to use OpenSSL instead in my code since we already using php 7.2.4 in our server. I have used following code for Encryption/Decryption. //ENCRYPTION function encrypt($text, $salt='') { if ($text == "") { …
Mahesh Mirase
  • 63
  • 1
  • 1
  • 8
6
votes
3 answers

PHP 7.2 with mcrypt in Windows

There are some huge legacy systems whose dependencies on PHPs' mcrypt are extremely important and vital (including the data storage in database). I need to find a way to maintain this library while upgrading to PHP 7.2 (which already worked…
Danilo Davanso
  • 77
  • 1
  • 1
  • 10
6
votes
3 answers

Where does homebrew install PHP on Mac High Sierra?

I'm using Mac High Sierra. I installed PHP (with GMP) using brew install php72-gmp Everything installed successfully, per the messages given, but it would seem I still have an old version of PHP 7.1 somewhere on my machine because when I…
Dave
  • 15,639
  • 133
  • 442
  • 830
5
votes
2 answers

how to set privatetmp=false permanently in ubuntu 18.04

I am running Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1045-aws x86_64) on AWS. I am running PHP 7.2.24-0ubuntu0.18.04.7 (cli) (built: Oct 7 2020 15:24:25) ( NTS ) When I migrated to 18.04 from 16 I had to set up the following: sudo su nano…
Jack Stein
  • 123
  • 1
  • 14
5
votes
5 answers

Laravel SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'

I get this error in the browser on my test Laravel project: Illuminate\Database\QueryException SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' (SQL: select count(*) as aggregate from `users` where `email` = test@test.com) I have…
Shu Pesmerga
  • 155
  • 1
  • 1
  • 15
5
votes
1 answer

PHP Twilio RequestValidator returning false on all endpoints

So I really don't know what the problem is here, I've tried many things, but I can't get the Twilio request hashes to match up. Let me explain. I decided to implement an instance of Twilio's RequestValidator to ensure the requests were coming from…
Adam McGurk
  • 186
  • 1
  • 19
  • 54
5
votes
1 answer

Process signal handlers are not called

I'm working on a pre-forking TCP socket server written in PHP. The daemon (the parent process), forks some number of children and then waits until it's told to exit and the children are all gone or it receives a signal. SIGINT and SIGTERM cause it…
David Patterson
  • 1,780
  • 3
  • 17
  • 40
5
votes
1 answer

How to Fix PHP Deprecated: Function create_function() is deprecated

I upgraded from PHP 5.3 to 7.2 and am getting the following error on 2 lines of code: PHP Deprecated: Function create_function() is deprecated I searched the forum and tried various forms of code, but none of them worked. Code 1: add_action(…
Ctichicago
  • 51
  • 1
  • 1
  • 2
5
votes
3 answers

Sorting a Doctrine ArrayCollection by a specific, custom field

I am attempting to sort an ArrayCollection by a specific field. The ArrayCollection is an array of courses. In the Course entity there is a method called isLive which returns a boolean. I would like to sort this collection to have the "live" courses…
crmpicco
  • 16,605
  • 26
  • 134
  • 210
1 2
3
48 49