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

Xdebug for php 5.6 and Ubuntu 16

It seems that this command is no longer supported .. does anybody have a replacement for this ? root@0ffa76c2d4e4:/home/# sudo apt-get install php5-xdebug Reading package lists... Done Building dependency tree Reading state information...…
Scobee
  • 448
  • 7
  • 22
3
votes
1 answer

Use of undefined constant SIGTERM - > assumed 'SIGTERM'

Currently running PHPUnit with Codeception on my Windows machine gives me an error: [PHPUnit_Framework_Exception] Use of undefined constant SIGTERM - assumed 'SIGTERM' As far as I know is that SIGTERM is a constant provided by PCNTL, which is not…
lin
  • 17,956
  • 4
  • 59
  • 83
3
votes
0 answers

PHP - file_get_contents() 'SSL: The operation completed successfully.' and 'Failed to enable crypto' at the same time (Google ReCaptcha)

A co-worker's come to me asking for some help figuring this particular error out. We're using google's recaptcha API for our registration and login forms, which does appear to be working as users have been accessing and registering on the software.…
SierraKomodo
  • 365
  • 4
  • 12
3
votes
1 answer

After upgrading from php5.5.9 to php5.6, What's the equivalent of php5enmod?

In ubuntu server, I used to install modules for php5.5.9 like for example mcrypt with apt-get, and then I enabled it with sudo php5enmod mcrypt. Now I've upgraded to php5.6, and I missed a module to work with PHPThumb in Laravel 4.2, which requires…
KeitelDOG
  • 4,750
  • 4
  • 18
  • 33
3
votes
3 answers

$_POST is empty in php5.6

I've tried almost all solutions related to empty $_POST after submitting form in stack overflow but none of them solved my problem.I'am using wamp server and using phpstorm. changed the values of post_max_size and upload_max_filesize in…
user6275035
  • 91
  • 2
  • 9
3
votes
0 answers

Reload resourcebundle in php without reload php service

How to reload generated resource file.dat without reloading PHP service? Like ResourceBundle.clearCache() in Java.
Akim
  • 31
  • 3
3
votes
1 answer

PharData extractTo method failed to extract .tar.gz on linux environment

I would like to extract .tar.gz file into the particular folder. I have used cURL to download the .tar.gz file from MailChimp batch operation. I have used below code to extract tar file. $phar = new \PharData('upload/test.tar.gz'); …
Hardik Panseriya
  • 523
  • 4
  • 15
3
votes
1 answer

Upgrading from php 5.5.x to 5.6.x on CentOS 6.7

I've looked around for this topic, but all of the questions related to upgrading php on centOS seem to be pretty outdated. I found https://www.zerostopbits.com/how-to-upgrade-php-5-3-to-php-5-6-on-centos-6-7/ and it seems fairly simple; however, I…
Cody Brown
  • 375
  • 3
  • 17
3
votes
2 answers

array_rand not working as expected in PHP

I was playing around with PHP as I've just begun my training in it. I came across the array_rand function that returns random indexes and you can control how many random indexes you want. But what if the number of random indexes is kept equal to the…
Mithil Bhoras
  • 337
  • 5
  • 14
3
votes
2 answers

How to make fillField() work for functional tests Codeception + Laravel 5.2

I am writing some functional tests to test login system for my application. I tried below ways to use fillField() but couldn't make it work for me. $I->fillField(['id' => 'loginEmail'],…
3
votes
1 answer

Better way to convert array of objects in PHP to associative array to populate a HTML select

Say I have an array of objects with the following structure: Array ( [0] => stdClass Object ( [category_id] => 5 [category_title] => Meetings [category_slug] => meetings [category_summary] => This is the…
geoffs3310
  • 5,599
  • 11
  • 51
  • 104
3
votes
1 answer

Get subdirectories with Symfony 2 Finder component

I am using the SF2 Finder Component to access a directory and grab the subdirectories inside it. This is my code: $finder = new Finder(); $dirs = $finder->directories()->in($this->getParameter('crmpicco.image_upload_path')); The image_upload_path…
crmpicco
  • 16,605
  • 26
  • 134
  • 210
3
votes
3 answers

Session not retaining value after every page refresh

The code is placed on page1.php and after every page refresh the variable 'a' value is being set again and again. Whats…
Mohammad Sharaf Ali
  • 569
  • 1
  • 4
  • 19
3
votes
3 answers

Cannot install mbstring php conflict

I am trying to install php-mbstring with php 5.6 and I get this error: Error: php56w-common conflicts with php-common-5.4.45-3.el6.remi.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles…
user1011332
  • 773
  • 12
  • 27
3
votes
1 answer

How to deal with callbacks having dot in the URL with built-in PHP server?

I am using Drupal site (with .htaccess and clean URLs which are working fine) within built-in PHP Development Server (run by: php -S localhost:8888) where in CMS I generate dynamically the XML file which I would like to expose, however when I am…
kenorb
  • 155,785
  • 88
  • 678
  • 743