Questions tagged [php-5.5]

PHP 5.5 is the successor to PHP 5.4. It was released on June 20, 2013. Use this tag for version-specific issues relating to specifically to PHP 5.5.

The key features of PHP 5.5.0 include:

  • Added generators and coroutines.
  • Added the finally keyword.
  • Added a simplified password hashing API.
  • Added support for constant array/string dereferencing.
  • Added scalar class name resolution via ::class.
  • Added support for using empty() on the result of function calls and other expressions.
  • Added support for non-scalar Iterator keys in foreach.
  • Added support for list() constructs in foreach statements.
  • Added the Zend OPcache extension for opcode caching.
  • The GD library has been upgraded to version 2.1 adding new functions and improving existing functionality.
  • A lot more improvements and fixes.

See Migrating from PHP 5.4.x to PHP 5.5.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:
527 questions
9
votes
1 answer

Symfony 3.0 migration PHP 5.5 to PHP 7.1 : "A PHP accelerator should be installed > Install and/or enable a PHP accelerator (highly recommended)"?

I want to upgrade PHP5.5 to 7.1 in a SYMFONY 3.0 Project. I have been checking the "php.ini" file to get the right result. One last thing is unresolved: Under PHP5.5, I used the extension accelerator php_apcu.dll. This is not maintained in PHP7. I…
nyluje
  • 3,573
  • 7
  • 37
  • 67
9
votes
1 answer

PHP 5.5 and MSSQL driver: Installing ODBC Driver 11 in Windows Server 2012 R2

I have a Windows Server 2012 R2 with IIS 8.5, and another server with MSSQL 2012. I must install PHP in IIS and connect to MSSQL, and I don't have Internet available for Web PI. I managed to install PHP 5.5 and I'm able to run phpinfo(), and I also…
Hikari
  • 3,797
  • 12
  • 47
  • 77
9
votes
1 answer

imagecrop() alternative for PHP < 5.5

A simple question motivated by a curiosity, with probably a complex answer: Is it possible to emulate the new PHP 5.5 imagecrop() in earlier versions, like 5.4, by combining other GD functions? Awn.. But without the imagecrop() black line bug,…
user753531
9
votes
2 answers

Do I need memcached with Opcache ?

I don't know anything about caching other than having read that people use APC/Opcache/Memcache/Memchached/Varnish ... to makes PHP go faster :) So, I tried APC last week since I was on PHP5.4, but then updated my to PHP5.5 so I could use Opcache.…
robue-a7119895
  • 816
  • 2
  • 11
  • 31
9
votes
2 answers

PHP 5.5 Classname Resolution

PHP 5.5 has implemented as a new feature a new way to retrieve the classname through the syntax ::class:
user753531
9
votes
3 answers

PHP 5.3.10 vs PHP 5.5.3 syntax error unexpected '['

Is it possible that this PHP code line if ($this->greatestId()["num_rows"] > 0) works in PHP 5.5 and returns an error in 5.3?? PHP Parse error: syntax error, unexpected '[' in /var/www/app/AppDAO.php on line 43 How can I change it to work under…
dendini
  • 3,842
  • 9
  • 37
  • 74
9
votes
2 answers

WAMPSERVER - Only upgrade PHP Version from 5.4.3 to 5.5.4

Can i upgrade the PHP version under wampserver instead of whole? Because current latest version of wampserver gives 5.4.3 version, but the latest version of php is 5.5.4. How can i upgrade it? EDIT : Wampserver provides either 5.4.3 or older…
user2845577
  • 123
  • 2
  • 2
  • 6
8
votes
3 answers

How to overwrite some PHP configuration defaults with a custom .ini file?

Let's said that I have installed PHP 5.5.x in Ubuntu and it comes with a default configuration. I would like to overwrite a few configurations but I do not want to (this is how I know it's possible): edit the default php.ini file use a PHP block in…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
8
votes
5 answers

How to display system uptime in php?

Still a beginner so bear with me... So I found this function for system uptime and have been fooling around with it as I learn about php and web development in general. My goal is to have the output look like days:hours:mins:secs but there was no…
Ethan Morris
  • 95
  • 1
  • 1
  • 8
8
votes
0 answers

How To Troubleshoot "FastCGI: incomplete headers (0 bytes) received from server" error

I keep receiving the following error: Wed Mar 30 01:22:43.780576 2016] [fastcgi:error] [pid 12345:tid 1234567890] [client 123.459.78.123:12345] FastCGI: incomplete headers (0 bytes) received from server "/path/to/php5-fcgi", referer:…
Jeremy
  • 2,516
  • 8
  • 46
  • 80
7
votes
3 answers

Laravel - Model filter date field by month

I have a method that can receive a parameter of "month" and another of "year", you can receive both or only one of them. In the case of only receiving the month I want to make a query that I look for in a field that is called "created_at" just…
edica
  • 339
  • 3
  • 9
  • 16
7
votes
3 answers

How to store and retrieve extended ASCII characters in MSSQL

I was surprised that I was unable to find a straightforward answer to this question by searching. I have a web application in PHP that takes user input. Due to the nature of the application, users may often use extended ASCII characters (a.k.a. "ALT…
Travesty3
  • 14,351
  • 6
  • 61
  • 98
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

How to inspect a closure in php?

I have a function that is being passed a Closure. I want to find out the name of the method that closure is derived from. When I call print_r, it outputs this: Closure Object ( [static] => Array ( [listener] =>…
Benubird
  • 18,551
  • 27
  • 90
  • 141
7
votes
3 answers

php_memcache.dll for WAMP 2.5 - PHP : 5.5.12 - Window8:64 Bit - VC11

I am searching for php_memcache.dll and found the below links http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/ http://downloads.php.net/pierre/ I tried all of them but still it shows warning sign for the dll like below . Is any one…
Bujji
  • 1,717
  • 10
  • 41
  • 66
1
2
3
35 36