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

PHP Notice: Only variables should be assigned by reference

I am getting the following error. PHP Notice: Only variables should be assigned by reference in /var/www/html/plugins/system/jxtcadminlock/jxtcadminlock.php I am usig PHP 7.2 And the 39th line of the…
-2
votes
1 answer

PHPBrew: cannot install or add argon2i hashing

I didn't find a way to add argon2i hashing to a running 7.2.27 version in phpbrew. Is there a way to get it done? I tried phpbrew ext install argon2i I get Downloading https://pecl.php.net/rest/r/argon2i/stable.txt via curl…
G-Agnes
  • 66
  • 8
-2
votes
1 answer

Need to Display images from another server using PHP and SSH2_CONNECT

Am trying to display image from another server to the dashboard using PHP. I am able to get the file names in the directory and authentication is a success. But unable to view that image using src.
sam mathew
  • 35
  • 1
  • 7
-2
votes
3 answers

preg_replace_callback_array Doesn't return match calculation value

I try preg_replace_callback_array for math bbcode. Its returning as plain text while i require calculated result function($matches) {$value = "$matches[1]"; return…
OH Pavel
  • 31
  • 6
-2
votes
1 answer

How to fix create_function when swapping to PHP 7.2

I saw people helping on rewriting to anonymous function. But I really don't know how: Deprecated: Function create_function() is deprecated in…
-2
votes
2 answers

Strlen() expects parameter to be string, array given in symfony

Warning: strlen() expects parameter 1 to be string, array given in symfony 4 This is my error. How to solve this? Please Help.
-2
votes
1 answer

Permissions issue with deployed Laravel app on Google Cloud

Just deployed an app on google cloud. runtime is php72 and env is standard. I've already changed my storage folder to 755 but I still get an error. Not sure which file to change it's permissions
Kevin Koo
  • 141
  • 3
  • 5
-2
votes
2 answers

PHP eval():: Use of undefined constant not_a_constant- assumed 'not_a_constant' php 7.2

This code gives the warning of the title. Simplest solution would be to add the single quotes to "not_a_constant". This however break the "eval" I have tried concatenation of strings, etc. The eval SHOULD NOT BE removed. No auxiliary variables…
voskys
  • 121
  • 1
  • 9
-2
votes
1 answer

If statement does not seem to work

Something may be wrong with my logic or the hosting server because when I tried it locally it works flawlessly!! however, when I upload it always execute the second statement no matter what the value of applicant_email_activated is?? It is driving…
-3
votes
2 answers

FatalErrorException Error: Maximum execution time of 30 seconds exceeded

I'm trying to run my symfony 3.3 project in the docker. It's working fine out of docker. All containers are running: nginx:alpine, php-fpm 7.2, PostgreSQL, rabbitMQ. I'm receiving this error: (1/1) FatalErrorException Error: Maximum execution time…
peter
  • 147
  • 2
  • 13
-3
votes
3 answers

is it possible to configure PHP to use virtualhost

Actually, I downloaded PHP7.2.7 safe thread from PHP's website(php.net) and I don't know if it is possible I can configure PHP to setup a virtualhost like we can do using XAMPP
user9749463
-3
votes
1 answer

Is it very bad to create real time chat app in PHP 7?

I'm creating PHP MySQL real time chat app. A friend told me It is very bad to use PHP for real time apps & that would kill server CPU. I know that PHP isn't the proper choice but i wanna get some advices to make the performance better with using PHP…
JORDAN MI
  • 78
  • 1
  • 8
-3
votes
1 answer

PHP 7.2 strange in_array behaviour

I upgraded from php 5 to 7.2, and there is no problem at local (some changes needed, but it solved). One of my function not working in production server. The code looks like this: $someBool = in_array($some, array("asd", "fgh", "etc")); If I make…
-4
votes
1 answer

open enquiry form when we hover to close button "X"

when we hover to close button "X", how to open enquiry form?
-4
votes
2 answers

each() deprecated, trouble to get rid of

I'm using a sql database backup script, in a part of the code I have : if (!isset($table_select)) { $result = $dbc->prepare("show tables"); $i=0; $table=""; $tables = $dbc->executeGetRows($result); foreach ($tables as $table_array) { list(,$table) =…
Aska
  • 3
  • 4
1 2 3
48
49