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

Replace Symfony service in tests for php 7.2

I'm trying to upgrade my application working on Symfony 3.3 and php 7.1 to php 7.2, but I encountered tons of DEPRECATED messages when I run phpunit. Most annoying is: The "user.user_service" service is already initialized, replacing it is…
James May
  • 1,371
  • 3
  • 20
  • 37
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
9
votes
1 answer

PHP Incorrect variable declaration

Debugging legacy code and I have a strange issue. The legacy code is being moved to PHP 7.2. I don't know which version of PHP it was originally written for but it does work in PHP 5.6. Below is my example of the problem... $variable =…
itsliamoco
  • 1,028
  • 1
  • 12
  • 28
9
votes
1 answer

Prevent action from Laravel observer events

I would like to know how an action could be prevented on a model observer, for example: $model->update(['foo' => 'bar']); In the observer public function updating(Model $model) { if($model->isDirty('foo') { // Prevent action from…
Asur
  • 3,727
  • 1
  • 26
  • 34
9
votes
2 answers

need help to install php 7.2 yum packages on aws ec2

I haven't seen any yum packages for php 7.2 on AWS EC2 and the release has been out over a month. I have tried yum list | grep php7 and only able see php70 and php71 packages. Has anyone installed php72 on AWS EC2? Is there another yum repo to…
xeo
  • 807
  • 2
  • 7
  • 25
8
votes
1 answer

How to enable optimizations in opcache (in an official php-fpm docker image)

The container is built from a trivial Dockerfile: FROM php:7.2.19-fpm RUN docker-php-ext-configure opcache --enable-opcache \ && docker-php-ext-install opcache I did not change php.ini, so all the settings are default. What's unexpected is…
zerkms
  • 249,484
  • 69
  • 436
  • 539
8
votes
4 answers

Redirect response from Event Subscriber in Symfony PHP

I'm trying to return a permanent (301) redirect response from a event subscriber hooked into the kernel events in Synfony PHP. My subscriber is as follow: use Symfony\Component\EventDispatcher\EventSubscriberInterface; use…
yevg
  • 1,846
  • 9
  • 34
  • 70
8
votes
3 answers

Libreoffice source not found aws linux

I am trying to convert a files from doc to pdf on my aws linux server. On my previous machine it worked fine but now i am having issues on my new machine. The only difference is i have upgraded from PHP 7.0 to PHP 7.2. and libre office version…
Syed Abdur Rehman Kazmi
  • 1,640
  • 3
  • 13
  • 30
8
votes
5 answers

Connecting php 7.2 to MS SQL using sqlsrv

I'm trying to get a connection to MS SQL up and running via PHP on my machine. I'm running IIS, have PHP 7.2 installed and MS SQL Express 2017. I have my basic web page running but when I click to open the PHP page, the connection does not…
Daves
  • 141
  • 1
  • 3
  • 6
8
votes
5 answers

error in phpmyadmin after updating to PHP 7.2.0

Recently I update my PHP version to 7.2.0 . When I open my phpmyadmin I have face this warning every time when i open any table in database. If anyone have know about it, Let me know. Thanks in advance.
Viraj Shah
  • 369
  • 1
  • 4
  • 11
7
votes
2 answers

Multiple php requests simultaneously, second request doesn't start until first finishes

I've got a long running php 7.2 script that is producing a zip file. I want to use a looping ajax call to check on the progress of building the zip file. The second script appears to be locked and doesn't start processing until the first script is…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
7
votes
2 answers

PECL install xdebug fails because it finds built-in older PHP instead of homebrew's latest version

I'm installing xdebug with pecl sudo pecl install xdebug and I get: checking Check for supported PHP versions... configure: error: not supported. Need a PHP version >= 7.0.0 and < 7.3.0 (found 5.6.30) I installed the latest PHP v7.2 with homebrew,…
anon
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
7
votes
1 answer

PHP7.2 missing intl extension

I'm trying to run php app that use locale_accept_from_http function from intl extension. My php version is 7.2 and I get an error: Call to undefined function locale_accept_from_http(); I was trying: 1. Install extension sudo apt-get install…
Andriy Lozynskiy
  • 2,444
  • 2
  • 17
  • 35
7
votes
2 answers

session_cache_limiter error in symfony2.8 with php 7.2

I am working on the project which is already build on Symfony. The versions and server details are as below PHP: 7.2 Webserver: apache 2.4.6 Symfony: 2.8.1.1 I am getting below warning while initializing new session on my controller. This issue…
Nikhil Joshi
  • 386
  • 2
  • 18
1
2
3
48 49