System Upgrade, PHP 8.0 Failures

Published Date: 2020/12/14 by: DaVieS

System Upgrade, PHP 8.0 Failures

So today we had a little downtime partially due to security upgrades, and major version upgrades.
nPulse.net is linked to many services, most of them our own and written in C++ thats fine..

However the website is running by PHP and the connections between many backend and the PHP is done by default, however seems like PHP 8.0 is not suits for this task yet.

PHP 8.0 is the lastest PHP version and it had a big major jump from 7.4 -> 8.0.
However seems like PHP 8.0 is buggy as hell yet, so we absolutely not recommend to use it production yet, regarding our cases.

Issues with PHP 8.0

  • PHP-FPM crashes randomly
  • PHP-FPM hangup when reload
  • PHP extension displays warning on wrapper (imagick)
  • each() as function cutted out, (I don't see any reason, why? we used to it)
  • socket is not resource anymore ?!


init warning on PHP:
PHP Warning:  Missing arginfo for Imagick::__tostring() in Unknown on line 0
PHP Warning:  Missing arginfo for Imagick::getimagehistogram() in Unknown on line 0

 

PHP 8.0.0 (cli) (built: Dec  8 2020 12:45:28) ( NTS )
Copyright (c) The PHP Group

Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.0, Copyright (c), by Zend Technologies
    with Xdebug v3.0.1, Copyright (c) 2002-2020, by Derick Rethans

 

The plan was....

Initiate PHP 8.0 for the site and rest of the thing, seems nothing like to work with PHP 8.0 out-of-the-box and not because of alpha or bugged, just so many changes.

 

What Changed?

As I mentioned, like each() function is no longer deprecated its gone, the each() function was unique and there are no single function can reproduce, totally don't understand, thats why we migrated to C++ from PHP.

Sockets... Socket is now a Class (was: resource), there are zero description available what this means, but OK.

PHP is very permissive language, which means if you make an error it mostly discrads and continues to run, like if you want count an array with count() but you passed a string variable instead of array, now throws error. Surprise!!

Seems like PHP wants to be bigger language.
PHP-8.0 is a mess currently, but hey its just "alpha".



If you like the article then don't forget to share!


MSSQL Fail to start on newer hardware

I recently faced with a strange issue with Microsoft Database Server.I used Bhyve as hypervisor and a Windows as Guest OS, tried to install MSSQL..


DELL PERC H710 turning into JBOD for ZFS

So at this very begining of the day I picked up an oldie machine Dell T620 and decided to want JBOD for ZFS, better IOPS and easier..


2021 Annual Report

Evolving. Trusted. Doing Better. I proudly can confirm that we still put many efforts to make our infrastucture more stable more green and..


nPulse.net going dark (again)

Back in time the most of the websites were DARK, specially the tech ones and forums. Then people started to use more slick, curved and light..


sysAdmin ToolBox v2.3.0

We just uploaded the very new release of this application.We added new function called: WiFi Discovery I'm sure everyone will love that, so..


New Software (PFR)

Our new Software released under Open Source license. PFR is a cross-platform easy-to-use powerfull tool to recover broken files that caused HDD..


BVCP for FreeBSD Bhyve Released today!

I'm happily announce that, one of our greatest product just released for the public! BVCP is a Webcontrol interface for FreeBSD Bhyve aka..


Upgrade into FreeBSD Bhyve was successfull

As I told before we were started to migrate our infrastructure from Linux/KVM (FreeBSD) into FreeBSD/Bhyve (FreeBSD). I announce that we..


Hello Bhyve, Im moving in ...

We are performing an update at this weekend, there will be some interrupts in our services. Please be patient! ..

All rights reserved nPulse.net 2009 - 2022
Powered by: MVCP 2.0-RC / BVCP / ASPF-MILTER / PHP 7.4 / NGINX / FreeBSD