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
4
votes
1 answer

Problems with pthreads in PHP

I have a problem with pthreads in PHP. When I start apache I see error like this: php.exe - Entry point not found The procedure entry point was not found _zend_hash_update@@12 in library D:\xampp\php\ext\php_pthreads.dll When I execute script in…
Stan Fortoński
  • 348
  • 6
  • 13
4
votes
0 answers

How to detect MacRoman encoding in PHP?

PHP's mb_detect_encoding() doesn't understand the MacRoman encoding. My app allows users to upload data in csv format and I need to convert it to utf8 because the users are not tech-savvy. I will never be able to get all of them to understand how to…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
4
votes
3 answers

DOM extension on PHP 7.2 Amazon Linux 2

I'm getting the error message below from a Symfony 2.8 application running PHP 7.2.8 on an Amazon Linux 2 server. Fatal error: Uncaught RuntimeException: Extension DOM is required. in…
phpd
  • 551
  • 4
  • 10
4
votes
1 answer

pcntl_async_signals() has been disabled for security reasons || Ubuntu 16 - Laravel 5.6

I have a server running on Ubuntu 16.04 running Laravel app version 5.6.29 on PHP version 7.2.8. I have set up some queue jobs to upload videos to the server and compile them and upload to s3 bucket. Suddenly from the past few hours,I am facing the…
JItendra Rana
  • 141
  • 1
  • 9
4
votes
3 answers

How to get query string in Symfony 4

I am trying to access the query string parameters in Symfony 4 namespace App\Controller; use Symfony\Component\HttpFoundation\RequestStack; class Home extends Controller { private $request; public function __construct(RequestStack…
yevg
  • 1,846
  • 9
  • 34
  • 70
4
votes
2 answers

IDE debugging with Docker, nginx, PHP7-FPM and Xdebug

I'm currently preparing a development stack on macOS with docker-compose to be able to use Xdebug (Port: 9009) on PHP7-FPM (Port: 9000) and nginx (Port: 80) server. Apparently the configuration is OK, but I am not able to debug through the…
Thiago Pereira
  • 594
  • 13
  • 25
4
votes
2 answers

PHP Warning: openssl_decrypt(): IV passed is 32 bytes long which is longer than the 16 expected by selected cipher

I need to implement openSSL in my application, because we had to change the version from 5.6 to version 7.2 I would like to understand how to solve this problem. Any doubts that arise about my environment, or how I am using the application, just ask…
Jonatas Rodrigues
  • 57
  • 1
  • 2
  • 12
4
votes
3 answers

TCPDF errors on PHP 7

I'm using TCPDF plugin to generate the PDF in PHP 7. The same code is working fine in the lower version PHP 5 but when I run this same code in the PHP 7 it's giving the below error message. A PHP Error was encountered Severity: 8192 Message: The…
Nashir
  • 254
  • 1
  • 5
  • 9
4
votes
3 answers

Can't install php 7.2 on Debian 9 (Stretch)

I added repository to install php 7.2 on Debian Stretch. sudo apt install apt-transport-https lsb-release ca-certificates sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg sudo sh -c 'echo "deb…
tropic
  • 51
  • 1
  • 1
  • 7
4
votes
3 answers

PHP 7.2 count() function is not working

I have a working php application and it is running fine on php 7.0 version. But when I upgrade a php version to 7.2. I am getting this error: count(): Parameter must be an array or an object that implements Countable I am getting errors on code…
user9833077
4
votes
1 answer

Howto ubuntu 18.04 install / activate PHP extension ext-mcrypt

I am installing a fresh kubuntu system 18.04, which is using by default php7.2 A composer install for my current software project gibves me this error message: The requested PHP extension ext-mcrypt * is missing from your system. Install or…
Calamity Jane
  • 2,189
  • 5
  • 36
  • 68
4
votes
0 answers

php-ldap PHP 7.2 - Centos 7

I try to install PHP 7.2 LDAP in Centos 7 with yum install php-ldap i also has uncomment extension=ldap.so in php.ini but ldap still has no longer in phpInfo. Anyone help? i use apache.
4
votes
3 answers

PHP: Strange Array Behaviour After Object Type Casting to Array

When you do array type-casting of json_decoded value (with $assoc = false), PHP creates an array with string indices: $a = (array)json_decode('{"7":"value1","8":"value2","9":"value3","13":"value4"}'); var_export($a); //array ( // '7' =>…
Gino Pane
  • 4,740
  • 5
  • 31
  • 46
4
votes
2 answers

Apcu is not enabled when installed with apt-get on PHP7.2-apache stretch image

I installed php-apcu with apt-get install on PHP7.2-apache-stretch but not able to enable it. The apcu.so and apcu.ini files are created during installation . Service Apache is also restarted and the content of apcu.ini is also good but php -m is…
DepGr
  • 41
  • 1
  • 1
  • 3
3
votes
1 answer

Docker image: Unable to locate package php7.2

I have had a bitbucket pipeline setup which had been working flawlessly for a year yet it stopped working few days ago Here is the beginning of my bitbucket config image: atlassian/default-image:2 options: max-time: 30 pipelines: default: -…
Denis
  • 322
  • 1
  • 4
  • 15