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
4
votes
3 answers

Trying to connect SSL server using fsockopen()

I'm running the next script from my local host and the production server, and Im getting different outputs. Anyone knows why am I getting that false from my localhost?
tirenweb
  • 30,963
  • 73
  • 183
  • 303
4
votes
2 answers

How to install php 5.6 on Ubuntu 20.04 beta

have recently installed 20.04 beta on my Laptop. I need to install php 5.6. I have googled a lot regarding it, but all are suggesting to install Via Ondrej Suri PPA. I have done that but it is giving error that 'unable to locate package php5.6'. I…
Shantanu Sarkar
  • 55
  • 1
  • 1
  • 5
4
votes
0 answers

What are options to install php5.6 after ubuntu trusty 14.04 reaches EOL

As the Ubuntu Trusty (14.04) reached EOL last month, it seems one of the popular ppa:ondrej/php does not support php 5.6 on ubuntu trusty. Are there still other ways to add this support safely ?
sakhunzai
  • 13,900
  • 23
  • 98
  • 159
4
votes
2 answers

PHP Warning: openssl_decrypt(): IV passed is 32 bytes long which is longer than the 16 expected by selected cipher

I need to implement openSSL in my application, because we had to change the version from 5.6 to version 7.2 I would like to understand how to solve this problem. Any doubts that arise about my environment, or how I am using the application, just ask…
Jonatas Rodrigues
  • 57
  • 1
  • 2
  • 12
4
votes
0 answers

PHPMyAdmin login error on RHEL 7 with MySQL 8 - mysqli_real_connect(): Server sent charset (255) unknown to the client

I recently installed phpMyAdmin on RHEL with PHP 5.6.4 and MySQL 8 but but when I try to access it from the browser the following errors occur: mysqli_real_connect(): Server sent charset (255) unknown to the client. Please, report to the…
Gaurav Piya
  • 41
  • 1
  • 3
4
votes
1 answer

laravel helper not working in controller

I am trying to Create helpers in laravel. when I try to open in route it works fine but when I call in the controller function it through an error Helper.php namespace App\Helpers; class Helper { public static function homePageURL() { …
Sam
  • 151
  • 1
  • 1
  • 9
4
votes
3 answers

PHP: Strange Array Behaviour After Object Type Casting to Array

When you do array type-casting of json_decoded value (with $assoc = false), PHP creates an array with string indices: $a = (array)json_decode('{"7":"value1","8":"value2","9":"value3","13":"value4"}'); var_export($a); //array ( // '7' =>…
Gino Pane
  • 4,740
  • 5
  • 31
  • 46
4
votes
2 answers

Broken dependencies while installing GD Library for php5.6 on Linode server Debian 9

I want to install GD Library for php5.6 on Linode Server Debian 9 I run apt-get install php5.6-gd Output is: php5.6-gd : Depends: libgd3 (>= 2.1.1) but it is not going to be installed then I tried to install that package apt-get install…
4
votes
2 answers

A backreference to a branch reset group

Disclaimer: I do not need another better regular expression without reset groups. I need to understand why the output is different for PHP 5 and PHP 7. Problem: I tried to use a branch reset group to match a string using PHP which consists of groups…
Kolyunya
  • 5,973
  • 7
  • 46
  • 81
4
votes
0 answers

Intl install using xampp - make failed

I am trying to install the intl extension to set up Magento. But when I run sudo pecl install intl, I get an error saying that the make failed. 2 warnings and 1 error generated. make: *** [php_intl.lo] Error 1 The error is error: typedef…
Ash
  • 137
  • 1
  • 10
4
votes
2 answers

MongoDB Raw query to select documents which are in given datetime period

I want to select documents which are in user given date time period like between : $from_date : "2017-01-07 09:08:59" To `$to_date : "2017-08-09 09:08:59"` I'm using laravel framework and jenssegers/laravel-mongodb mongodb driver to run my query,…
Mohammad_Hosseini
  • 2,481
  • 3
  • 30
  • 53
4
votes
1 answer

Render a HTML String or local html file in webdriver

I want to render a local HTML file by facebook/php-webdriver. For example: $host = 'http://phantomjs:8910/wd/hub'; // webdriver server is on another host $driver = RemoteWebDriver::create($this->host,…
Arash Mousavi
  • 2,110
  • 4
  • 25
  • 47
4
votes
1 answer

Why does PHP heredoc fail to preserve linebreaks?

By the docs: Heredoc text behaves just like a double-quoted string, without the double quotes. this code "; echo "hd:<".<<"; should output: dc:< >hd:< > but instead (on PHP V5.6.13 for Windows) it…
ChrisJJ
  • 2,191
  • 1
  • 25
  • 38
4
votes
0 answers

Unable to load dynamic library '/usr/lib/php/20131226/xml.so' after upgrade to php 5.6

I upgraded my webserver from php 5.5 to php 5.6. When typing php -m, I get the following message: php -m PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/xml.so' - /usr/lib/php/20131226/xml.so: undefined symbol:…
schingeldi
  • 870
  • 2
  • 14
  • 26
4
votes
1 answer

Laravel singleton not working across controller/ViewComposer

In Laravel, I have a class that I would like to make available to the service controller, make some changes to in the controller action, and then render out with a ViewComposer. I have done this several times before without issue, but for some…
Raiden616
  • 1,545
  • 3
  • 18
  • 42