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

php package installation with yum

I am really sorry if I am asking something that's been already asked, but I couldn't find anything relevant after spending a good amount of time. I've done: yum install -y php72-php-pecl-xdebug (This is from remi repo) Now if the plugin is not…
Cesc
  • 648
  • 1
  • 11
  • 22
0
votes
1 answer

Freeswitch ESL PHP does not work with php7.2

When I compile phpmod with php 5 (or 5.6) everything works fine. But when I install php7.2 the php ESL doesnt work any more. It turned out that in ESL.php is using dl() to dynamically load extension at runtime. However, the dl() option was removed…
Anis Bedhiafi
  • 185
  • 1
  • 5
  • 22
0
votes
0 answers

Silverstripe upgrade 3.6 > 4.0.2 install.php Parser Error unexpected T_String

Im trying to get the ss upgrade to work (Upgrade with composer) { "name": "silverstripe/installer", "description": "The SilverStripe Framework Installer", "require": { "php": ">=7.2.3", "silverstripe/cms": "4.0.2", "silverstripe/framework":…
L03TJ3
  • 37
  • 8
0
votes
1 answer

Get datatype of input variable in the command line Php

This is my code. $fr = fopen("php://stdin", "r"); $input = fgets($fr); if (preg_match('/^-?[0-9]{1,4}$/', $input)) { echo "Integer."; } else if (preg_match('/^[-+]?[0-9]*\.?[0-9]+$/', $input)) { echo "Float."; } else if…
Parithiban
  • 1,656
  • 11
  • 16
0
votes
1 answer

Laravel/mPDF non-numeric value encountered ErrorException after PHP upgrade to 7.2

I update php7.1 to php7.2.1 (PHP 7.2.1 (cli)) my laravel pdf not generated show below errorr: (1/1) ErrorException A non-numeric value encountered in mpdf.php (line 30648) at HandleExceptions->handleError( 2, 'A non-numeric value…
matinict
  • 2,411
  • 2
  • 26
  • 35
0
votes
1 answer

Call to undefined method Imagick::setImageClipMask()

I'm trying to run the example on php.net/imagick.setimageclipmask but with no luck. Running it CLI and instead of returning the result, i save it to a file. Anyone else run into a similar problem? OS X 10.13.3, PHP 7.2.2, imagick module 3.4.3,…
Mejenborg
  • 53
  • 7
0
votes
1 answer

The target-entity cannot be found Doctrine

My problem is that when I try to update ORM Doctrine with this command: vendor/bin/doctrine orm:schema-tool:update --force I get this error: In MappingException.php line 762: The target-entity Product cannot be found in 'Bug#products'. …
Václav Stummer
  • 349
  • 2
  • 8
  • 21
0
votes
1 answer

Error when changing PHP version on Heroku app

As some of you might know, PHP version ≥7.2 has an issue regarding count: count(): parameter must be an array or an object that implements Countable and this does contributes to a lot of problems. I'm using the PHP framework Laravel 5.3 on Heroku,…
Rikard Olsson
  • 841
  • 1
  • 7
  • 28
0
votes
0 answers

In localhost it's still showing the lowest version using Ubuntu

I have updated my PHP version to 7.2 in my Ubuntu machine. I am getting this version while running this php -v command in my terminal and getting the below output. PHP 7.2.1-1+ubuntu14.04.1+deb.sury.org+1 (cli) (built: Jan 11 2018 22:52:58) ( NTS…
satya
  • 3,508
  • 11
  • 50
  • 130
0
votes
1 answer

After installing php 7.2.1 on CentOS 6.9, directadmin says php 7.2.1 is installed but apache is still using older version of php

I installed php-7.2.1 on CentOS 6.9 and both # php -v and directadmin say it's 7.2.1. The System Information window in directadmin says: Apache 2.4.29 Running DirectAdmin 1.52.1 Running Exim 4.87 Running MySQL 5.5.31 Running Named 9.8.2rc1 …
Karoll
  • 1
  • 1
0
votes
1 answer

php 7.2 constant error appear after defined

I have this error appear after to defined the constant how to resolve ? Warning: Use of undefined constant MODULE_HEADER_BREADCRUMP_STATUS - assumed 'MODULE_HEADER_BREADCRUMP_STATUS' (this will throw an Error in a future version of PHP) in…
Ruzo
  • 247
  • 1
  • 2
  • 8
0
votes
1 answer

Doctrine Standalone: An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused

After upgrading to a php 7.1 server I get a "connection refused error" Upgrading my localhost to php 7.2 results in a similar error. Below I have included the details of the localhost. I am trying to use doctrine stand alone without Symfony or…
Joan
  • 11
  • 1
0
votes
1 answer

Laravel 5 how to include config file?

I am using Laravel 5.5 and I have a config file in dir app\Json\Schemas\TestSchema.php which contains an array with configurations like this: return [ 'value' => 'string' ]; What is the best way to include file dynamically? In my model namespace…
coder fire
  • 993
  • 2
  • 11
  • 24
0
votes
3 answers

getting subdocument from document

I have a collection that has a sub-document in it and I'm trying to find an easy way to get an exact document. { "_id" : ObjectId("59b0303bfe409a21fccc9523"), "CreatedOn" : ISODate("2017-07-22T15:55:00.000+0000"), "UpdatedOn" :…
Eman
  • 1,093
  • 2
  • 26
  • 49
0
votes
1 answer

Upgrade/install php7 on google compute cloud instance

I'm trying to upgrade my google cloud compute instance with the latest version of php. It is currently is running debian9/php5/apache2/mysql14 and I want to get it to php7. I've tried all the simple apt-get update upgrade install php7 etc and no…
augr
  • 47
  • 10