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

Missing Controller when using a prefix admin in CakePHP 3.2

I have an issue with the admin part of my website using CakePHP 3.2. This part works really well on wamp in local but when I moved the site to the apache server, it stopped working. I have this error message : Missing Controller…
2
votes
0 answers

Where do I get FFMPEG dll for php 5.6.25 for windows 8

Hi I have installed wamp with php 5.6.25. I need to enable ffmpeg. I have done the followings: Option one: I have followed what has provided in this link http://www.wikihow.com/Install-FFmpeg-on-Windows, but it didn't work Option two: Downloaded…
user75472
  • 1,277
  • 4
  • 28
  • 53
2
votes
1 answer

Anyone tested Codeigniter 2.2 on php 5.6?

just curious to know, has anyone tested CodeIgniter application on PHP 5.6? We are upgrading our server from 5.3.3 to 5.6 currently running CodeIgniter 2.2 . Will that be fine? if yes, I would really appreciate if you post your feedback what…
rajesh
  • 21
  • 1
2
votes
1 answer

IIS AppPool user permissions not working

I'm moving a PHP app from IIS7 to IIS8.5 on Win2012 R2. The app runs in its own application pool (MyPortal) and needs write permission on a sub-folder to create PDFs. So I assign Modify or Full Control permissions to IIS AppPool\MyPortal on the…
MrAngry
  • 31
  • 1
  • 4
2
votes
3 answers

Prevent browser from caching images

To achieve that unauthenticated users cannot view images just by guessing the URL (e. g. http://www.test.com/images/123.jpg I store all images outside the public directory and offer a URL that accepts the unique-id of the picture and checks whether…
Steevie
  • 630
  • 1
  • 6
  • 19
2
votes
1 answer

php 5.x 7.x, ssl pdo error: Peer certificate CN=`someName' did not match expected CN='someIP'

We have a server with mysql on port 3306. We have sertifications and key and we try to connect to this server. But we see such problem: Peer certificate CN='SomeName' did not match expected CN='someIP' I've read a lot of articles and can't find…
2
votes
0 answers

Is there any tool that can analyze my PHP 5.3 source code and give me a list of things to fix to migrate to PHP 5.6?

I'm trying to find the safest way to go from 5.3 to 5.6 for a very large codebase. Doing everything manually will take a long time. Are there any tools that can analyze code statically and give a list of absolute minimum changes needed to go to 5.6?
user187809
  • 706
  • 2
  • 8
  • 23
2
votes
1 answer

PHP: Is there a way to get the return type of a method?

Given the following code structure is there a way that I can get the return type of FooFactory->createService method with PHP 5.6? I've tried ReflectionClass and ReflectionMethod classes but couldn't find a way.Thanks in advance. class FooFactory…
memo
  • 273
  • 2
  • 15
2
votes
1 answer

No mod_php? 14.04 / ondrej php5.6 + ondrej apache2

Trying to get a 14.04 box running PHP 5.6, but having issues getting PHP enabled in apache. Specifically, it doesn't seem mod_php is being installed anymore? apt-get update apt-get install -y python-software-properties add-apt-repository -y…
Brian Brownton
  • 1,313
  • 14
  • 31
2
votes
2 answers

Class 'DateTimeImmutable' not found

I've just run an update for my CakePHP version (3.1.7). And now I'm unable to run my app, with a fatal error : Fatal error: Class 'DateTimeImmutable' not found in /opt/lampp/htdocs/my-app/vendor/cakephp/chronos/src/Chronos.php on line 50 I found…
sk001
  • 561
  • 6
  • 27
2
votes
2 answers

php json_encode id column to string

My array is : $response = [ 0 => [ 'id' => 'US', 'text' => 'United States' ], 1 => [ 'id' => 'CA', 'text' => 'Canada' ], 2 => [ 'id' => 'FR', 'text' => 'France' ], ... ] When…
Alucard
  • 1,814
  • 1
  • 21
  • 33
2
votes
3 answers

Bug in PHP? : XMLReader::readOuterXml generate "Input is not proper UTF-8" when input IS UTF-8

I think I found a bug in XMLReader::readOuterXML in PHP 5.5.33 and 5.6.19... PHP 5.2.17 is fine, did not test with 7. My PHP is VC11 x86 Thread Safe, with Apache 2.4.18 VC11 Win32. When reading an XML file properly encoded in UTF-8 (with or without…
Goozak
  • 508
  • 1
  • 5
  • 21
2
votes
0 answers

WAMP PHP 5.6 fsockopen returns nothing

I have a strange thing, fsockopen works fine with PHP 5.5 on WAMP, but fails with PHP 5.6 (also WAMP, same server). I am using a library, there is this code: $url = parse_url($uri); if ('https' == $url['scheme']) { $host =…
Dovis
  • 167
  • 2
  • 12
2
votes
1 answer

PHP Strict Standards: Only variables should be passed by reference // array_pop

Since i'm in PHP 5.6, i have this warning (not in PHP 5.2) : PHP Strict Standards: Only variables should be passed by reference in blockcategories_top.php on line 157 Here is the line 157 : line 155 if ($cookie->last_visited_category) { line…
Shark34
  • 69
  • 1
  • 7
2
votes
1 answer

Unsure of php 5.6 string concatenation exploit

I recently stumbled across the following in our codebase: $func = $_GET['func'] . '_xyz123'; if(function_exists($func)){ $result = $func($_GET); echo(json_encode($result)); } It makes me wonder, if it would be possible to pass in a php…
jjb
  • 77
  • 2
  • 9