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

Remove lines from updating csv file

In my wamp server I have a script that updaing csv file every second. I want to remove lines from the csv file, I have this code (from here: How To Delete The Top 100 Rows From a CSV File With PHP): $input = explode("\n",…
jhon4
  • 31
  • 3
2
votes
1 answer

PharData create tar/tgz - cannot unlink tar?

Why can't I unlink the tar file that I created via PharData? try { $a = new PharData('archive.tar'); // ADD FILES TO archive.tar FILE $a->addFile('manifest.json'); } catch (Exception $e) { echo "Exception : " . $e; } //Now…
Run
  • 54,938
  • 169
  • 450
  • 748
2
votes
2 answers

How to Create Global Variable Dynamically in PHP

I need to create some global variable in PHP through function dynamically to be used out of function I tried and I am…
Suffii
  • 5,694
  • 15
  • 55
  • 92
2
votes
1 answer

*** glibc detected *** /usr/sbin/apache2: free(): invalid pointer

I have a problem in apache2 when I restart Apache, the CPU freezes and log become huge every time someone visit pages. My Debian version is wheezy 7.1. What it seems to be the problem? This is my config : Apache 2 Server version: Apache/2.2.22…
2
votes
4 answers

Unique field in codeigniter

I need to make Unique Serial number SN in my form. I've tried to do it, but I can't understand how this function works. Please explain clearly as I'm new to programming with codeigniter view:my view (form) Branch:
Mohamed Hamed
  • 59
  • 3
  • 11
2
votes
1 answer

How do I access an element in a constant array

Since the PHP 5.6 it's possible do define a constant array like this: const MY_CONSTANT = array('fruit'=>'apple'); However I am not clear on how exactly I can access array elements that use either keys or indexes. PhpStorm complains about a syntax…
Eugene Krall
  • 503
  • 5
  • 20
2
votes
2 answers

Check where page is being accessed from

I have two PHP Pages, an index.php and a content.php. I am using the code include("content.php"); on the index.php file. Is it possible to check whether the user is on index.php or did he go straight to content.php ? Basically what I want to do is…
Matt
  • 1,087
  • 1
  • 12
  • 28
2
votes
1 answer

installation error with php 5.6 and phpdbg

I have been trying to install the new PHP 5.6 on Mac OS using HomeBrew. I have no problem but when I try to get it installed using --with-phpdbg it fails with the error: sapi/phpdbg/phpdbg.c:1498:2: error: expected identifier or '(' if (cleaning…
Paul Ochon
  • 23
  • 2
2
votes
0 answers

How do I compile php 5.6 with this error? Undefined symbols for architecture x86_64

I'm trying to compile php 5.6 on OsX Mavericks but in the middle of linking process I am receiving this error and do not know what to do with it. Undefined symbols for architecture x86_64: "_libiconv", referenced from: _do_convert in gdkanji.o …
pogeybait
  • 3,065
  • 2
  • 21
  • 23
2
votes
2 answers

gost-crypto hash algorithm in php5.6

In alpha release of php5.6 a new hash algorithm gost-crypto was added. I tried to look into documentation but the only information I found that it is added and nothing else. Also there is no information on google (due to the fact that it was…
Salvador Dali
  • 214,103
  • 147
  • 703
  • 753
1
vote
0 answers

unable to install php5.6 in ubuntu 18.04

My main aim is to install php5.6 while i am having php7.2 already in my laptop.i tried to install it but it's not working in ubuntu 18.04. the commands which i ran are given below-- sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo…
Aman Verma
  • 11
  • 1
1
vote
2 answers

are mysql_* functions of PHP 5.6 compatible when we upgrade database from mysql 5.7.42 to mariadb 10.5?

My client wants to upgrade all his websites script from PHP 5.6 to PHP 8 and mysql 5.7.42 to mariadb 10.5. We want to upgrade one by one website. Now the problem is we can choose different PHP version for each domain and subdomain but for the…
1
vote
1 answer

Can i host a php 5.6 project without problems?

i have an old PHP/MySQL Project developped by php 5.6 and i want to know if the website will be hosted correctly even if the version is old
1
vote
1 answer

Php 5.6 command - yearly

I'm using php 5.6 and noticed that yearlyOn() is not in the documentation. I'm wondering if yearly() fires every first day of January or the day it was set up? Also, will yearlyOn() work for php 5.6?
1
vote
2 answers

PHP Imagick breaks SVG on conversion to PNG

I'm updating a super legacy app and I'm trying to move from PHP 5.3 to PHP 5.6. Everything is going smoothly except for Imagick. On old server we were using Imagick 3.0.0 and now on newer server with PHP 5.6 we tried using Imagick 3.6 and 3.7 but…