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
271
votes
19 answers

Switch php versions on commandline ubuntu 16.04

I have installed php 5.6 and and php 7.1 on my Ubuntu 16.04 I know with Apache as my web server, I can do a2enmod php5.6 #to enable php5 a2enmod php7.1 #to enable php7 When I disable php7.1 in Apache modules and enable php 5.6, Apache recognizes…
salimsaid
  • 3,186
  • 4
  • 15
  • 20
113
votes
23 answers

how can I enable PHP Extension intl?

I am going to install Magento2 at my local server and it gives me following error notice. I am using XAMPP. When I tried to enable it from php.ini file it throws another error for missing dll: The program can't start because MSVCP110.dll is…
Yasin Mushtaq
  • 1,139
  • 2
  • 8
  • 4
58
votes
3 answers

How to install php 5.6 with homebrew if from this year it is EOL?

Because php 5.6 is EOL from 01.01.2019, it was removed from homebrew. How can I install it with homebrew even if it is not in core?
Octavian Popa
  • 683
  • 1
  • 5
  • 9
40
votes
5 answers

Laravel 5 controller sending JSON integer as string

On my development server the JSON response from the Laravel 5 controller shows the data in the correct types. e.g imdb_rating: 7.6 imdb_votes: 6271 But on the production server, the JSON response is sent back as strings. imdb_rating:…
Muggles
  • 1,526
  • 3
  • 14
  • 21
35
votes
12 answers

Composer update fails while updating from packagist

While executing composer install/update I have got the following error from openssl: The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL…
yuklia
  • 6,733
  • 5
  • 20
  • 26
34
votes
2 answers

Install php5.6 in Debian 9

How to install php5.6 in the Debian 9 The following packages have unmet dependencies: libapache2-mod-php5 : Depends: libdb5.1 but it is not installable Depends: libonig2 (>= 5.2.0) but it is not installable Depends: libssl1.0.0 (>= 1.0.1) but…
karthikeyan
  • 449
  • 1
  • 4
  • 3
32
votes
12 answers

Elasticsearch PHP client throwing exception "No alive nodes found in your cluster"

I am trying to do a scan and scroll operation on an index as shown in the example : $client = ClientBuilder::create()->setHosts([MYESHOST])->build(); $params = [ "search_type" => "scan", // use search_type=scan "scroll" => "30s", …
ajaybc
  • 4,049
  • 7
  • 44
  • 57
29
votes
1 answer

PHPUnit -setUp() - does it run before and after each test case?

I am still a bit confused with setup() in PHPUnit. Does it run before and after each test case? For intance, I want to clean up my article table before each test but I want to keep the test data that I already injected into the table. Because I only…
Run
  • 54,938
  • 169
  • 450
  • 748
28
votes
3 answers

cURL file uploads not working anymore after upgrade from PHP 5.5 to 5.6

I've got a cURL upload that fails after upgrading from PHP 5.5 to 5.6: $aPost = array( 'file' => "@".$localFile, 'default_file' => 'html_version.html', 'expiration' => (2*31*24*60*60) ) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,…
bardiir
  • 14,556
  • 9
  • 41
  • 66
19
votes
3 answers

Option does not exist error when passing through option from controller to embedded Symfony form

I get the following error when trying to pass through an option to my buildForm method in one of my forms. The option "numOfHoles" does not exist. Defined options are: "action", "allow_extra_fields", "attr", "auto_initialize", "block_name",…
crmpicco
  • 16,605
  • 26
  • 134
  • 210
18
votes
2 answers

How do I enable the DOM extension in the php.ini

How do I enable the DOM extension in my php.ini file? I am running a Wordpress site and getting a message "Please enable the DOM extension in your PHP configuration". Do I need to edit the wp-config file or php.ini
Steve Bell
  • 209
  • 1
  • 2
  • 9
16
votes
2 answers

PHP version upgrade 5.3.25 to 5.6

We have a requirement for upgrading the PHP version (5.3.25) to current stable version which is 5.6.17. So, for this we need to find which approach would be best. Step by step approach, in which we can upgrade from 5.3.X to 5.4.X, 5.4.X to 5.5.X…
uday8486
  • 1,203
  • 2
  • 13
  • 22
16
votes
1 answer

** is new power operator instead of power() in php

How to use new version of Power operator instead of pow() in new version of php (5.6)? Like: echo pow(2,3); Why output of this line is 512 not 64? 2 ** 3 ** 2;
Mahmoud.Eskandari
  • 1,460
  • 3
  • 20
  • 32
13
votes
7 answers

Laravel validator throws an exception instead of redirecting back

After I upgraded to Laravel 5.2 I encountered a problem with the laravel validator. When I want to validate data in a controller take for example this code.
DB93
  • 610
  • 2
  • 5
  • 16
12
votes
1 answer

What is "a" correct way to integrate a Zend2 application with PHPBB3 authentication?

Ok, this is a bit complicated, so bear with me. I'm running a PHPBB Forum for some time now and my goal is to create a Zend2 PHP Application using its User Administration and Authentication Features instead of building up a completely new…
elfwyn
  • 568
  • 2
  • 11
  • 33
1
2 3
59 60