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
3
votes
0 answers

what is the process to install php7.2-dev extension?

I am trying to install php7.2-dev but it depends upon dependencies i have search a lot on those but can't resolve the issue. sudo apt install php7.2-dev Reading package lists... Done Building dependency tree Reading state information...…
Hassan Shafique
  • 147
  • 2
  • 14
3
votes
2 answers

Fail to install xdebug in Ubuntu with php7.2

I'm trying to install xdebug in my recently upgraded Ubuntu 20.04.1 When I place the output of phpinfo() in https://xdebug.org/wizard I get: Installation Wizard Summary Xdebug installed: no Server API: Apache 2.0 Handler Windows: no Zend Server:…
Laiacy
  • 1,504
  • 13
  • 18
3
votes
1 answer

insert php datetime in mongodb become an empty object

I did the update from php 7.2 to 7.4 and I find an unexpected behavior when i store datetime in mongodb so i try $client = new MongoDB\Client("mongodb://localhost:27017"); $collection = $client->needToBeDrop->datetime; $document =[ …
Simon
  • 33
  • 2
3
votes
1 answer

How to specify to use a specific PHP version when running "composer install"?

In a server we have a few of webapp and actually have both 7.2 and 7.4 installed. When running composer install, it use the PHP setup as default in the system, actually the 7.4. In fact, $ which php /usr/bin/php $ php -v PHP 7.4.2 (cli) ... $ ls…
realtebo
  • 23,922
  • 37
  • 112
  • 189
3
votes
1 answer

PHP 7.2 mysqli can not connect to MySQL with auth plugin sha256_password without SSL

Changing user auth plugin in MySQL to 'sha256_password': ALTER USER 'user'@'N.N.N.N' IDENTIFIED WITH 'sha256_password' BY 'password'; test.php: #!/usr/bin/env php
Selivanov Pavel
  • 338
  • 2
  • 11
  • 25
3
votes
4 answers

Warning: sizeof(): Parameter must be an array or an object that implements Countable php7.2

I updated to PHP 7.2 and it created an array (no pun intended) of issues. I've been knocking them out (mostly these sizeof and count() warnings. The one error we have : Warning: sizeof(): Parameter must be an array or an object that implements…
Natsu
  • 111
  • 1
  • 2
  • 11
3
votes
0 answers

How to deactivate PHP 7.2 Warning: Use of undefined constant ... in htaccess

I switched from PHP 7.0 to PHP 7.2 and getting hundreds of "Warning: Use of undefined constant ..." messages. Yes I know I have to fix it but that's not doable as fast as I want to. Looks like php_flag display_errors off via htaccess is not working…
Oliver
  • 156
  • 1
  • 13
3
votes
0 answers

How do I continuously execute my script for sending mails?

I want my part of my Magento code to continuously execute. For example: If I want to send mail for those customers who have not ordered any product from last 3 month. So in this case i have to find mail triggering timings for them. Consider A…
3
votes
1 answer

SendGrid response status code 0 no further information

I am trying to send a mail using the SendGrid PHP API library. It worked when I tried it yesterday but today the reponse just has zero information: SendGrid\Response Object ( [statusCode:protected] => 0 [body:protected] => …
Sjaak Diemen
  • 61
  • 1
  • 5
3
votes
2 answers

install php-gd ext on Debian

I'm not able to install php-gd extension on my server. I have php 7.2: PHP 7.2.10-1+0~20181001133426.7+jessie~1.gbpb6e829 (cli) (built: Oct 1 2018 13:50:53) ( NTS ) and debian 8 linux: Debian GNU/Linux 8 command to install GD extension: sudo…
tomasnikl
  • 83
  • 1
  • 2
  • 10
3
votes
1 answer

PHP Output correct in terminal but not in browser

I just started working with shell_exec in php and stuck at this point. Below is my php script which runs in terminal correctly but not in browser. And output in terminal is $ php…
3
votes
1 answer

How to user route model binding in Laravel for Pivot model

Laravel v: 5.7 PHP v: 7.2.10 Route path is: admin/apartments/{apartment}/associations/{association}/association-users/{association_user} Getting URL: http://127.0.0.1:8000/admin/apartments/1/associations/1/association-users Pivot Model:…
Renuga
  • 45
  • 6
3
votes
0 answers

Wrong timezone in PHP

PHP is printing wrong timezone. I've checked nearly everything. I will describe what I've checked and I am running. Centos 7, PHP 7.2, Apache 2.4.6, Wordpress 5.1 Centos has America/Toronto timezone. Showing the time exactly. Wordpress has the same…
user10640643
3
votes
4 answers

Getting : Fatal error while I am trying to use the declare(strict_types=1) on my PHP file

I have created a php test script test.php with the following code :
karthzDIGI
  • 393
  • 1
  • 4
  • 15
3
votes
0 answers

Google App Engine - PHP - Mail not Working

I'm trying to send an email via PHP on GAE. I use the code from here: cloud.google.com/appengine/docs/standard/php/mail And a very minimal app.yaml that looks like so: runtime: php72 handlers: - url: .* secure: always script: auto I get an…
Dimdum
  • 322
  • 2
  • 15