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:
857 questions
148
votes
18 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
  • 1,886
  • 2
  • 11
  • 17
85
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
  • 859
  • 1
  • 6
  • 4
34
votes
3 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,366
  • 3
  • 12
  • 19
34
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
  • 4,387
  • 4
  • 16
  • 24
32
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
  • 421
  • 1
  • 4
  • 6
32
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
  • 429
  • 1
  • 4
  • 3
30
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
  • 3,912
  • 7
  • 38
  • 56
26
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
  • 13,882
  • 9
  • 38
  • 63
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
  • 14,513
  • 22
  • 113
  • 191
18
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…
laukok
  • 47,545
  • 146
  • 388
  • 689
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
  • 872
  • 1
  • 8
  • 16
14
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);
Mahmoud.Eskandari
  • 1,360
  • 1
  • 17
  • 31
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
  • 600
  • 1
  • 4
  • 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
  • 548
  • 2
  • 10
  • 32
12
votes
2 answers

Can I migrate from PHP 5.3.10 to PHP 5.6.0?

I'm basically a PHP developer. I'm currently using Ubuntu Linux 12.04 LTS on my local machine. I'm using the following PHP version for developing my PHP project: php -v //command run at terminal to know the `PHP` version installed PHP…
PHPFan
  • 4,000
  • 11
  • 50
  • 104
1
2 3
57 58