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
2 answers

How to connect mssql with php 7.2.5

I've worked with a system on Ubuntu server 17. But after I've upgraded to 18.04 LTS, my mssql connection stopped working. This is my following program line: $serverName = "IP OF MY SERVER"; $connectionOptions = array( "Database" => "DB NAME", …
Diego de Lima
  • 471
  • 2
  • 7
  • 15
0
votes
3 answers

Having installed PHP7 can i also use php5_module along?

I just upgraded from php5.6. => php7.2.5 All of my websites are working except one that it only workd correctly with the php5_module and not with the php7_module. Is there soem way to only have installed php7.2.5 but also use the php5_module as…
0
votes
1 answer

Can someone explain why my MySQL table data is not being displayed?

I'm new to PHP and MySQL. I have an HTML table and form that submits the entered data to MySQL, but doesn't display the MySQL data in my HTML table. Here is an image for reference: https://i.stack.imgur.com/I9k8K.png. I want the submitted data to…
0
votes
1 answer

File upload getting stuck uploading file of 10 MB on Container in Proxmox, Apache2 Php

I'm failing to upload files around the upload is stuck at around 10~12 seconds after starting, at my connection speed a 10 MB file takes around 18 seconds to get uploaded, i could never finish it. trying a different connection 10 MB got uploaded…
Falanso
  • 33
  • 7
0
votes
3 answers

How can I make PHP7 parser to force return types?

Is there any directive in the recent PHPs (maybe similar to that of declare( strict_types = 1 );) that tells the PHP interpreter to "force" return types in the functions, and if there's no return type, it fails due to a parse/syntax error? I'd like…
Xavi Montero
  • 9,239
  • 7
  • 57
  • 79
0
votes
0 answers

Call to undefined function mb_convert_encoding() although mbstring is enabled

I have mbstring installed on my Server and it shows in the "Additional .ini files parsed" line in the phpinfo() output. But when I try to use the mb_convert_encoding() function, it gives me the following error: Fatal error: Uncaught Error: Call to…
Johannes
  • 377
  • 4
  • 17
0
votes
1 answer

Attempted to call function "apcu_fetch" from namespace "Doctrine\Common\Cache"

I'm developping an application with symfony 3 and angular 5. my system is windows 10 and i'm using php7.2 All is done wih dev_mode, but when i'm turning on production mode i'm having this error : Fatal error: Uncaught …
walidtlili
  • 840
  • 2
  • 13
  • 36
0
votes
1 answer

Creating public url with hashed slug parameter

I would like to have a page that can be reached by public but depending on the parameters on the URL, the access should be verified. My goals is to prevent people to see the content by increasing the id. Let me make it clear with an…
SNaRe
  • 1,997
  • 6
  • 32
  • 68
0
votes
1 answer

Replace create_function with anonymous function

I have checked this before posting the question. this is a small part of a code that uses create_function $lambda_functions[$code_hash] = create_function('$action, &$self, $text', 'if ($action == "encrypt") { '.$encrypt.' } else { '.$decrypt.'…
3gth
  • 550
  • 5
  • 23
0
votes
0 answers

Method of quantifying PHP7 extended methods which have different number of arguments to parent

I'm upgrading a rather large codebase from PHP 5.6 to PHP 7.2. There are thousands of places in the code where extended classes contain methods with different number of arguments to the parent method. e.g: class SomeBaseClass { function…
elMarquis
  • 7,450
  • 4
  • 38
  • 42
0
votes
1 answer

CodeIgniter session Data showing null during authentication

I'm trying to send the session variable to another controller but when i use r_print() it shows nothing and there is condition applied which returns null.
0
votes
0 answers

:q!Symfony4 Autowiring not wofking for own Utils

I'm trying to access TokenStorageInterface inside a Utils Class, since I need to reuse code and I don't want to mess with internal logic inside the controllers. But I get the following error when accessing the TokenStorage Interface from my…
KillDash9
  • 879
  • 1
  • 8
  • 21
0
votes
1 answer

PHP 7.2.4 Apache2.4 call to undefined function srv_connect()

Hope all of you guys are fine. i have installed PHP 7.2.4 and Apache 2.4 ON Windows Server 2008 my questions is: Applications in WWW folder is running but When i built connection with sqlsrv it gives me below error, call to undefined function…
0
votes
1 answer

Restricting access of an user based on a user attribute

I have users table. These users table has company_id attribute. I have some generic pages with ids for ex. https://www.test.com/customer_question/p/4701/c/40960 This url needs to be access only if the logged in user has specific company_id.…
SNaRe
  • 1,997
  • 6
  • 32
  • 68
0
votes
2 answers

Laravel 5.6 + cPanel + Composer Error: Using wrong PHP Even though 7.2 is installed

I am trying to install Laravel 5.6 on a cPanel sandbox and I am getting strange behavior where composer is trying to use PHP 5.6 even though 7.2 is setup. Here are the details: # composer --version Composer version 1.1.1 2016-05-17 12:25:44 The…
Kevin Pimentel
  • 2,056
  • 3
  • 22
  • 50