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.
887
questions
0
votes
1
answer
57
views
revive an old php 5.6 website with docker
I'm reviving an old website still using PHP5.6 and mysql_connect, in order to update its code.
I was going to setup a docker environment with PHP 5.6 to make sure everything worked correctly, before ...
-1
votes
1
answer
54
views
PHP file won't upload large file
I have a php file upload script that our company uses to upload files to an imaging server. Most of those files are PDFs, TIF, and sometimes image files. I am trying to upload a 16MB file using ...
0
votes
0
answers
36
views
ldd -d libphp5.so resulting multiple undefined symbol errors. How to fix the same?
Installed Apache 2.4.54 and PHP 5.6.32 from the source.
Here are the configure options used.
Apache:
./configure \
--prefix=${APACHE_PREFIX} \
--enable-module=most \
--enable-...
0
votes
0
answers
23
views
The code execution cannot proceed because MSVCR120.dlI was not found. Reinstalling the program may fix this problem
The code execution cannot proceed because MSVCR120.dlI was not found. Reinstalling the program may fix this problem.
i reinstall it but still wamp server not working on windows 11
i try to download ...
0
votes
1
answer
22
views
How to compile Microsoft's PHP5.6?
How is one supposed to compile Microsoft's php5.6? (aka https://github.com/microsoft/php-src/tree/PHP-5.6-security-backports ) - When I try "the normal way"-ish, make fails, the script I use ...
1
vote
0
answers
540
views
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-...
0
votes
2
answers
706
views
Issue to install PHP 5.6 with ppa:ondrej Ubuntu 18.04
Good day:
I am trying to install PHP 5.6 with ppa:ondrej on Ubuntu 18.04 (LTS) x64
One year ago, it worked successfully, using the following commands:
sudo add-apt-repository -y ppa:ondrej/php
sudo ...
1
vote
2
answers
112
views
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 ...
1
vote
1
answer
27
views
Filter the data of a school to which the user belongs
I want to display the list of students from a school the user belongs to and not display data from other schools. for that I created two user tables: id , school_id
school table: id, name, address,.......
0
votes
1
answer
68
views
LEGACY MYSQL SETUP Warning: mysql_connect(): No such file or directory
Fellow Developers,
I have solved the initial issue, but if anyone has a docker image that would run this, i would much appreciate it.
I need help with a very old app.
I am setting up a VM environment ...
0
votes
0
answers
37
views
symfony 2.8 AppKernel slowness
We need your help/opinion on some issues we're having with slowness in our production app. Some context: we have two AWS EC2 servers (t3a.2xlarge) running a symfony 2.8 app (php 5.6) through php-fpm/...
0
votes
1
answer
277
views
How to fix Failed to fetch http://deb.debian.org/ ...., on installing php 5.6 in docker?
I need to run an old project which needs php 5.6 and mysql 5.5. Inorder to accomblish this I have created a docker but below errors occured on docker compose. when I tried with php 7.3 it works fine ...
0
votes
0
answers
59
views
Encryption/Decryption with Sodium extension with php 5.6 not working
My Old project is on 5.6 so Sodium extension for Encryption/Decryption is not working so my system engineer set some setting that if I run file with .php7 extension it run on php 7 and normal .php ...
3
votes
1
answer
150
views
is there real 64bit version of PHP 5.6 for windows?
On 32bit php, the PHP_INT_MAX (max integer value) is much lower, and causes problems.
When looking online to get local laragon test server up, found old versions for windows archived here: https://...
0
votes
1
answer
32
views
Containerized PHP application sessions directory is empty
We are migrating a PHP website from an old host to a container. The old code runs on VM directly, now we built a container that facilitate the PHP website. Both old and new PHP website run on top of ...
0
votes
0
answers
18
views
Template class [] not found convert php5 to php7
$bit = vB_Template::create('imdmstat_latestpost_bit');
all code
$bit = vB_Template::create('imdmstat_latestpost_bit');
$bit->register('latestpost', $latestpost);
$bit->register('...
0
votes
0
answers
64
views
PHPUnit : Call to a member function connection() on null
I am using PHPUnit 4 and getting following error while running the unit test:
PHP Fatal error: Call to a member function connection() on null
2
votes
0
answers
166
views
php undefined index or variables don't throw any error
I came across a fat-free framework where indexes are accessed without checking if there's data present or not.
few e.g.
e.g.1
$sObj = new Site($db); // this returns null?
$site = $sObj->getById($...
0
votes
0
answers
119
views
PHP vers. 5.6 or 5.5 on Windows 11 - Error "No input file specified."
I'm having trouble installing PHP with the old version 5.6 or below (5.2 is running well) on my Windows 11 machine. I know it is not recommended to run this old version, but in fact, I need to do so ...
0
votes
1
answer
46
views
running curl in a for loop blocks access to website
I have the following code which basically runs a bunch of curl request in a for loop
This is a background system job.. however when this code is running.. i can't access the website, website is just ...
0
votes
0
answers
58
views
Dynamically get a service in Symfony 3.4 without the Service Container
My application is used for multiple Merchants and each one of them can be customized.
In order to handle this customization I have different services that are dynamically switched.
Here is what I do:
...
0
votes
0
answers
529
views
IIS-Version-10 and Php 5.6 The FastCGI process exited unexpectedly
Recently I am facing a new issue on my server, I get this error( 1 time a day) randomly anytime, and that time no one can able to login any module. Page are loading and loading until I restart IIS ....
0
votes
1
answer
171
views
Problem with Amazon Linux 1 + PHP FPM 5.6 + Composer 2 + OpenSSL 1.0.2k-fips
I am having problems running the Composer 2 in an Amazon Linux 1 EC2 with OpenSSL 1.0.2k-fips.
When I try to run php composer.phar update I get:
Loading composer repositories with package information
...
-2
votes
1
answer
904
views
How to debug project with php 5.6. in Visual Studio Code?
Could anybody help, how to debug php project in Visual Studio Code with php 5.6.? Something like xdebug. I need to trace program.
1
vote
1
answer
338
views
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
44
views
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?
-2
votes
1
answer
50
views
Why the name of trucks are same in 2nd and 3rd record of company data retrieval?
My data in database:
My objective is to retrieve all data of company collection (MongoDB) data from the database. The company collection holds one or many trucks. I have implemented one-to-many ...
1
vote
2
answers
453
views
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 ...
-1
votes
2
answers
11k
views
Upgrade PHP version in project from 5.6 to 8.1 [closed]
I need to upgrade PHP version of my project. It is PHP5.6 and I want to upgrade it to PHP8.1. I tried to search for such information but couldn't find it, thus, I want to ask. Is it better to upgrade ...
1
vote
1
answer
175
views
Non-static method common\components\DirectoryHelpers::mimeType() should not be called statically
totally php newbie here.
need help about our library program here.
i try to upload our book cover to our webserver, but get this error instead.
the problem lines here
got this task to connecting our ...
0
votes
1
answer
574
views
lampp php5.6 install redis via pecl
I need to install redis on my lampp(php5.6.40) via pecl in mint 20
cd /opt/lampp/bin
sudo ./pecl install redis
but I got an error :
WARNING: channel "pecl.php.net" has updated its protocols,...
0
votes
1
answer
56
views
PHP 7.2 move_uploaded_file is giving text `here`, instead of true or false
I have this code,
move_uploaded_file($filename_upload, '/site/path/out/of/this/project/files/reports/dailyreports/' . $excelname.".".$ext_name);
This have to give me true or false. But it ...
0
votes
0
answers
191
views
How can I read and write php 5.6 error log?
I'm using Ubuntu 20.04.4 LTS, Apache/2.4.41, PHP 5.6.40-57.
When I call
error_log ('Page is not writable for save called)', 3, "/var/log/apache2/php_error.log");
there is nothing in /var/...
2
votes
0
answers
1k
views
MasOS Monterey: Unable to switch PHP versions using brew
I upgraded my OS to Monterey and meanwhile I installed multiple versions using brew.
Basically I followed this post: https://getgrav.org/blog/macos-monterey-apache-multiple-php-versions
I am not ...
1
vote
0
answers
819
views
Installing php5.6-mbstring on Ubuntu 16.04
Before the question, I am running on Ubuntu 16.04. Upgrading is not an immediate option. I have installed php5.6 following the instructions in this article:
https://www.liquidweb.com/kb/install-...
-1
votes
1
answer
186
views
Unsupported operand types in file.php on line 266
When I run my website, I see this error:
Unsupported operand types in file.php on line 266
Line 266 file.php is as the following:
$template_hook += $SetTemplates;
PHP version is 5.6.
0
votes
1
answer
216
views
NetBeans Xdebug Remote Host waiting for connection for infinite time
I am trying to configure Xdebug to my NetBeans IDE which is showing as "Waiting for Connection". I have already spent two days but I didn't find a clue on it.
I am connecting to the code ...
0
votes
0
answers
60
views
Int casting gives wrong number on WAMP [duplicate]
I have some legacy code on a Windows machine running PHP 5.6 that we will be dismissing but I need to do some migrations from.
I have trivial bit of code that is quite mistifying to me.
I've ...
0
votes
1
answer
746
views
Why CodeIgniter 3 become slow on localhost and works normal on server
I've joined a company and they are working on a very large and legacy project, which is made on CodeIgniter 3 and PHP 5.6. Project works very well on server but when we run on localhost It takes 2 min ...
1
vote
0
answers
453
views
php5.6-zip not available?
I am currently using php 5.6 for one of my very old project, it is on ubuntu 16.04. I needed to install php-zip extension on it. I tried apt-get install php5.6-zip, did not work. Showed there is no ...
-1
votes
1
answer
523
views
php update - centos 7 failed
I have Centos 7 server running apache 2.4.48 and php 5.6.40 I'm trying to update php to 7X on my server but am having some issues.
entered into XXXXXXXXXXXXX ...
0
votes
1
answer
484
views
Laravel converts integer to NULL when returning Model as JSON
This is the weirdest mistake I've ever seen in my life, I don't know how to explain it, but it's happening.
When returning a list of models from the controller:
public function index()
{
return ...
0
votes
1
answer
47
views
Getting NULL when reading JSON Object in PHP side
I'm trying to send a JSON object to PHP through ajax. But am getting null value on PHP side.
Jquery code
t_data = [{"name":"John", "age":30, "car":null},{"...
1
vote
1
answer
246
views
PHP - Avoid writting nested if statement
I have this variable:
$otcId;
which value can be retrieved from 3 different places(keep in mind this value will always be the same in all places):
$otcId = $this->dat['id_rfcOV'];
$otcId = $this-&...
0
votes
0
answers
52
views
Session and cookies are automatically destroying when form post from other website in PHP
Session and cookies are automatically destroying when form submit (post) from other website in PHP 5.6 (I can't update php versions because its a big website and existing codes are written around 10 ...
0
votes
3
answers
262
views
PHP exec function not working for SQLDUMP for exact same command that works in command line
On my Ubuntu 18.04 command-line, this works perfectly:
mysqldump --user="myuser" --password="mypassword" --skip-lock-tables --single-transaction --no-tablespaces mydb | gzip > /...
0
votes
1
answer
487
views
How to install php5.6-soap extension with php5.6 version on ubuntu 16.04
We have Ubuntu 16.04. server with php5.6 version, and one of our application need php5.6-soap but we can not get a way to instal the php5.6-soap extension. When we try to install the extension the ...
1
vote
3
answers
2k
views
php.ini not reflecting changes ever after server restart
I needed to change few values in php.ini file and after running phpinfo() within my application, found my php.ini file in below location
Configuration File (php.ini) Path /opt/php-5.6.30/lib
Loaded ...
1
vote
2
answers
1k
views
PHP 5 to PHP 7 transpiler [closed]
I have a big project in php 5 and it's well documented. Now, I want to migrate to php 7.2 and I have already checked the compatibility using phpstan and every thing is alright. So, I wonder if there ...
0
votes
0
answers
34
views
Set resolution of file when splitting files with GD
How can i add the resoulution of the output files as 300 PPI.
The resoulution of the input file is 300 PPI . The two output files 96 PPI, but should be 300 PPI aswell.
I cant get the function ...