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
2 answers

Migration to PHP 5.6: Writing a MySQL wrapper

I have to move a WebSite to PHP 5.6. Therefore, I need to change the way PHP connects to MySQL from the mysql_-like-type to either PDO or mysqli. Someone proposed to write a wrapper (class), so that the old way of using $db =…
Mister Woyng
  • 391
  • 2
  • 16
2
votes
1 answer

Upgrading PHP in Google App Engine

With PHP 5.5 no longer being actively supported and security support ending in a few months I thought it might be a good idea to upgrade. I use GAE and I thought this would be as simple as changing runtime: php55 in my application's app.yaml file…
wogsland
  • 9,106
  • 19
  • 57
  • 93
2
votes
1 answer

Magento 2.0 installing Error always_populate_raw_post_data

I am trying to install Magento 2.0 on my Server. During the Installation process, at the version check screen, there is the following error: My server is on OpenSuse 13.2 with PHP 5.6.1. In my /etc/php5/cli/php.ini is the following…
MCSell
  • 215
  • 6
  • 17
2
votes
0 answers

PHP 5.6 openssl change cert. path

I'm opening a connection like this: fsockopen('ssl:// ... etc Which returns with the following error: Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL…
W van Rij
  • 536
  • 2
  • 16
2
votes
1 answer

Laravel routes are not working

I have this really weird issue where the routing process on Laravel seems to not work at all.. I get NotFoundHttpException every time I try to load another route except the default one(/) These are my files: routes.php
Daniel Bejan
  • 1,468
  • 1
  • 15
  • 39
2
votes
2 answers

Notice Undefined Index php 5.6

I have write the code as: // session_start(); $auid = isset($_POST['auid']) ? $_POST['auid'] : $_SESSION['auid']; $pwd = isset($_POST['pwd']) ? $_POST['pwd'] : $_SESSION['pwd']; Getting error Notice: Undefined index: auid, pwd What is…
Muhammad Muazzam
  • 2,810
  • 6
  • 33
  • 62
2
votes
0 answers

No output using CLI with CodeIgniter

I'm making a Cron job in CodeIgniter and I need access to my models in order to perform it's tasks. Here's my controller code.
CatBrownie
  • 150
  • 3
  • 11
2
votes
1 answer

Empty $this object when accessing a controller via CLI

I'm making a Cron job in CodeIgniter and I need access to my models in order to perform it's tasks. Here's my controller code.
CatBrownie
  • 150
  • 3
  • 11
2
votes
3 answers

PHP: Using scandir bu excluding ../ ./ in the result

I'm using scandir and a foreach loop to display a list of files in a directory to the user. My code is below: $dir = scandir('/user1/caravans/public_html/wordpress/wp-content/uploads/wpallimport/files'); foreach($dir as…
Liam Fell
  • 1,308
  • 3
  • 21
  • 39
2
votes
1 answer

PHP: File upload script and move_upload_file

I'm creating a simple file upload script in PHP to upload XML files (it's actually a WordPress Plugin), I suspect I'm having issues passing the file from the temp folder to my designated folder however. The complete script is shown below, the script…
Liam Fell
  • 1,308
  • 3
  • 21
  • 39
2
votes
2 answers

PHP: Removing white space from an unserialized entry of an array

I'm attempting to concatenate two values from a serialized array. I have this working well. The problem is one of the values Size in this case, contains white-space. I need to remove this whitespace. I have used preg_match before to remove the…
Liam Fell
  • 1,308
  • 3
  • 21
  • 39
2
votes
1 answer

Find when Internal (built-in) Functions and Predefined Constants were introduced (version number) in PHP

I was working on a couple of backwards compatibility issues and have been using the PHP manual for reference. Ive been using the version information located at the top of the page. Example, is_null version information is (PHP 4 >= 4.0.4, PHP 5,…
TarranJones
  • 4,084
  • 2
  • 38
  • 55
2
votes
1 answer

Customise an array element/fragment of a Symfony form only

I am attempting to customise the markup of a form element in my Symfony form, however I am having difficulty targeting this element alone. I have read this section in the SF cookbook - but I am having difficulty applying it to my situation. The…
crmpicco
  • 16,605
  • 26
  • 134
  • 210
2
votes
2 answers

Slim 3 - replacement for isPost()?

In Slim 2, I would do this, $app->map('/login', function () use ($app) { // Test for Post & make a cheap security check, to get avoid from bots if ($app->request()->isPost() && sizeof($app->request()->post()) >= 2) { // } …
Run
  • 54,938
  • 169
  • 450
  • 748
2
votes
1 answer

How to keep PHP from strippng XML tags when echoing a string

I am executing an external command in PHP via exec and I take that output (which is an array) and then get the individual strings search for specific strings. I then wish to echo those strings to the screen. However, some of these strings contains…
user2643864
  • 641
  • 3
  • 11
  • 24