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!


Is Rust better than C/C++ ?

Rust is relatively new programming language which offers full memory management and garbage collection, while C/C++ already has a decent history..


Network Update

Proudly announcing that in the past days we expanded our infrastructure and our services will become more stable and quickier at us west, us..


Windows 10/11 Disable Search and annoyings on start menu

The one of the most irritative feature on windows is a "new" start menu which sends every input into Microsoft related services. Also if you have..


BVCP 2.0.x Released

Our one of the most popular FREE-TO-USE Software BVCP reached the next milestone.Big thanks to the active community, a ton of feedbacks received..


Welcome 2024

We have been busy at 2023. Im personally very happy to see a lot of new technologies especially EV related researches.We continued to support our..


FreeBSD 14 fresh install breaks mc (Midnight Commander) subshell support

We are very happy to announce that - if you did not know already - one of the best Operating System released a new version. FreeBSD 14. This..


ZFS Replication Software

  While we are working on BVCP 2.0 just another software made to handle ZFS Replications over multiple nodes. The software yet not released..


Bhyve UEFI drops into EFI shell, Linux wont boot Easy Workaround

  EFI works that way that the installer places a file into a FAT32 partition in a regular directory as called "BOOT". The usual full path of..


Nexus Datalogger 2023

We're proudly present that we released out our next version of datalogger software as commerical product. Our first version of Datalogger..

All rights reserved nPulse.net 2009 - 2024
Powered by: MVCP2 / BVCP / ASPF-MILTER / PHP 8.3 / NGINX / FreeBSD