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
7
votes
1 answer

What does `session.entropy_length` in `PHP.ini` do?

In the session section of PHP.ini there is a directive called session.entropy_length. I'm aware that it's used to make the generation of the session id more random. How does it do that? What is the maximum length? What if it's exceeding the bits of…
SAz
  • 355
  • 4
  • 14
7
votes
2 answers

Line breaks in PHP xmlwriter document

I've got an XML feed I've created using XMLWriter. It works flawlessly in dev on a PHP 5.6 vagrant box. On the live server, running PHP 5.4 the feed fails to render with a message: This page contains the following errors: error on line 3 at column…
user101289
  • 9,888
  • 15
  • 81
  • 148
6
votes
1 answer

Why Exception is not instance of Throwable?

I think in all programming languages Exception class is instance of Throwable interface. Take a look at following code which shows Exception is not instance of Throwable in php. try { throw new InvalidArgumentException("error message"); }…
Lost Koder
  • 864
  • 13
  • 32
6
votes
1 answer

Symfony 2 Form error "This form should not contain extra fields." when submitting a form

I am submitting a form and handling it in the Sylius ResourceController which submits the form and validates it. This is the form in situ:
crmpicco
  • 16,605
  • 26
  • 134
  • 210
6
votes
2 answers

Unknown type name 'zend_string'

I am trying to compile APCu cache extension using make && make install. I get a compilation error regarding not being able to find zend_string or zend_long. Do you guys know what extension I would need for these? Thanks :)
Kal
  • 2,239
  • 6
  • 36
  • 74
6
votes
1 answer

After enabling Xdebug PHP runs incredibly slowly

I have installed Apache 2.4 and PHP 5.6 on my PC (with Windows 10). After enabling Xdebug PHP runs 10 times(!) slower than without Xdebug. This is php.ini config: zend_extension = "php_xdebug-2.3.3-5.6-vc11-x86_64.dll" xdebug.remote_autostart =…
Goodnickoff
  • 2,267
  • 1
  • 15
  • 14
6
votes
2 answers

Downgrade class php 5.6 to 5.5

I founded a class to stack object layers and closures but my server isnt running on php 5.6 yet. And i was wondering how can i convert the ...$parameters because i cant fix it by replacing everything with call_user_func_array() then the…
M Beers
  • 71
  • 1
  • 7
6
votes
3 answers

502 Bad Gateway Nginx Mac OS X Yosemite php56 php-fpm

I was Brew’ing PHP, MySQL & Nginx on Mac OS X, but I can't make this work. Any idea what I'm doing wrong? phpinfo is working /log/nginx/access.log 127.0.0.1 - - [14/Mar/2015:21:21:16 -0500] "GET /wp/wp-admin/install.php HTTP/1.1" 502 574 "-"…
Mao8a
  • 71
  • 1
  • 1
  • 5
6
votes
1 answer

late static binding in closure PHP5.5 vs 5.6

Why new static in the closure (in a class static method) is equal to new self in PHP5.5, while it's properly bound in PHP5.6 ? Given: abstract class Parent { public function __construct($something) { $this->something = $something; …
Jarek Tkaczyk
  • 78,987
  • 25
  • 159
  • 157
6
votes
1 answer

PHP crypt() returns *0 failure string in version 5.6.4, but not 5.4,

echo crypt('test', "$2a$07$"); produces a long hash in PHP version 5.4.16, but it produces the "failure string" *0 in 5.6.4. Reading the PHP docs on crypt(), I'm still not quite clear why, though the Changelog mentions the *1 being returned instead…
user49438
  • 889
  • 7
  • 20
6
votes
2 answers

PHP 5.6 Sessions + Memcache(d)

I am having a strange problem, since i have upgraded PHP from 5.4 to 5.6. I have never seen the error myself, but the logs a full every day with this message: session_write_close(): Failed to write session data (memcached). Please verify that the…
Andrei Carpov
  • 83
  • 1
  • 5
6
votes
1 answer

How to get __debugInfo to work with XDebug?

It seems __debugInfo does not work when xdebug overwrites var_dump. Is there anyway to make this work? I am using PHP 5.6.0 and XDebug 2.2.5
Petah
  • 45,477
  • 28
  • 157
  • 213
5
votes
1 answer

Best approach to resolve php-common conflicts: ignore, fix, other?

I am attempting to install the Soap module (from webtatic PHP 5.6) on PHP 5.3.3 on CentOS 6. When I run the yum command yum install php56w-soap to install it I get the message below: Error: php56w-common conflicts with…
sazr
  • 24,984
  • 66
  • 194
  • 362
5
votes
1 answer

Amazon Linux PHP version being reset to 5.6 after installing 7.0

I'm using the Amazon Linux AMI and I uninstall PHP 5.6 and some extensions and then install PHP 7.0 and some extensions. This all works fine for a few weeks and then suddenly PHP 5.6 and the extensions I had before get installed again without me…
Mikhail Janowski
  • 4,209
  • 7
  • 28
  • 40
5
votes
1 answer

Make PHP 7 run on Apache instead of 5.6 with Scotch Box / Vagrant

I've installed Scotch Box and updated the PHP version to PHP7. However, it seems like I've updated the PHP CLI, not the PHP version that Apache uses. I see other answers on SO saying that in the Apache httpd.conf there's a line that says loadModule…
erol_smsr
  • 1,454
  • 4
  • 24
  • 49
1 2
3
59 60