Questions tagged [php-5.6]

PHP 5.6 was the successor to PHP 5.5. It was released on August 24, 2014 and reached end-of-life on December 31, 2018. Use this tag for version-specific issues relating to specifically to PHP 5.6.

PHP 5.6.0 came with new features such as (incomplete list):

  • Constant scalar expressions
  • Variadic functions
  • Argument unpacking
  • Support for large(>2GiB) file uploads
  • SSL/TLS improvements
  • New command line debugger called phpdbg

See Migrating from PHP 5.5.x to PHP 5.6.x for more information.

Information

  • If you want to talk about PHP or if you have a question, you can come to Chat Room 11: PHP.
  • For global question on PHP, please use the generic tag:
886 questions
2
votes
0 answers

How to use phan/phan for backwards compatibility (PHP 5.6 -> 7.2)

I'm planning to move my PHP project from PHP 5.6 to PHP 7.2. I wanted to use phan\phan to that end but it checks every programming mistakes under the sun. Could someone show me how to just run the backward_compatibility_checks filter (or suggest…
amith.gotamey
  • 968
  • 8
  • 14
2
votes
1 answer

Reading large .xls file with PHP

At the moment I am doing a mass interface of files/data and some files are in XLS format, which I need to normalize them into csv (so basically, convert XLS to CSV files) The problem is that PHPExcel (and similar libraries) load the entire sheet…
Oliver M Grech
  • 3,071
  • 1
  • 21
  • 36
2
votes
1 answer

Skip Step if value not matching in foreach loop + php

I've to display the td value as per th value matching. Here in the below table has th which has month dates. In the $monthdays I'm getting month days count and in the $listmonthdisplay I'm getting all the dates of the months. In the $employeeDetail…
Devendra
  • 219
  • 2
  • 22
2
votes
2 answers

Cakephp 2.4 on PHP 7.3

We have an application built and running on CakePHP V2.4. This is running on PHP V5.6. We would like to get this running on PHP V7.3. Can you advise on how to do this and your experience with such a change.
shridhar p
  • 31
  • 1
  • 3
2
votes
2 answers

Class 'Maatwebsite\\Excel\\ExcelServiceProvider' not found - Laravel 4.2

I'm using Laravel 4.2, after running php artisan migrate I got PHP Fatal error: Class 'Maatwebsite\Excel\ExcelServiceProvider' not found in…
code-8
  • 54,650
  • 106
  • 352
  • 604
2
votes
1 answer

How does addServer method of PHP Memcache/Memcached work?

I'm currently running PHP Memcache on Apache server. Since Memcache and Memcached have similar inner workings this question is about both of them. I was wondering through the addServer method of memcached here and the second comment on the user…
ibrahim tanyalcin
  • 5,643
  • 3
  • 16
  • 22
2
votes
1 answer

Debian - upgrade php from version 5.6 to 7.2

I'm trying to upgrade from PHP 5.6.35 to PHP 7.2, I did run the following command: sudo apt install php7.2 php7.2-common php7.2-cli php7.2-cgi php7.2-fpm All went fine, but when I tried to install laravel, it is saying my php version is 5.6 and I…
Steve
  • 331
  • 5
  • 17
2
votes
1 answer

PHP 5.6 Vulnerability CVE-2018-7584

We are using PHP 5.6.33 with CentOS in production environment. We found that PHP is having following vulnerability CVE-2018-7584. On the official page it is showing following : In PHP through 5.6.33, 7.0.x before 7.0.28, 7.1.x through 7.1.14, and …
Mohit Shah
  • 124
  • 7
2
votes
1 answer

Checking for freetype2 error when installing php5.6 on arch linux

I'm trying to install PHP version 5.6.37 from AUR using makepkg -i command, but when it reaches the moment to check for the "freetype2" it displays the error: checking for freetype2... configure: error: freetype-config not found. I already have…
user4383363
2
votes
2 answers

how to install php 5.6 on ubuntu 16.04 running Virtualmin Control Panel

i have tried a number of times to get php 5.6 working on ubuntu 16.04 I keep getting a server error 500 when trying to browse http:/domain.com/phpinfo.php to check which version of php is active (server also has 7.0, 7.1, & 7.2) I also have same…
adam
  • 75
  • 2
  • 15
2
votes
0 answers

Files are uploaded and downloaded successfully but able to open on the server

I am trying upload a file on server by using below lines of code. $.ajax({ url: '../common/uploadAllFiles.php?root=../student/certificates/', dataType: 'text', cache: false, …
Nida Amin
  • 735
  • 1
  • 8
  • 28
2
votes
1 answer

RedHat 7 Error => Requires : libcrypto.so.10

I have a problem when I want to install php 5.6. I removed all php stuff with "yum remove php*". I use Linux RedHat 7 with Repo Remi enabled. I am using OPENSSL_1.0.2 and a 64 bit OS. [root@localhost ~]# yum install php56 Modules complémentaires…
Ahmed Gharrak
  • 29
  • 1
  • 4
2
votes
1 answer

Attempted to call function "imap_open" from namespace

I created a Symfony command that parses an IMAP mailbox. The IMAP extension is installed and enabled. When I execute the command I have this error: [Symfony\Component\Debug\Exception\UndefinedFunctionException] Attempted to call function…
Mohamed Ben HEnda
  • 2,686
  • 1
  • 30
  • 44
2
votes
1 answer

very large 2.5mb php file will opcache cache it?

I have a project in which I have a large array with locations having certain timezones. I do not wish to use a database because that would mean too many database hits and writing Yet Another Caching Mechanism to prevent database hits. So I made it…
Tschallacka
  • 27,901
  • 14
  • 88
  • 133
2
votes
1 answer

Change which libxml2 version PHP uses

A little bit of intro. I'm using xmlrpc_server_call_method to parse through an XML request and perform the action specified in the XML on the data contained in the XML. The XMLs I need to process are larger than 10MB, largely due to one extremely…
TurnipEntropy
  • 527
  • 5
  • 12