PHP 8.2 for IBM i Now Available — PHP 7.4 Frozen

It’s time to upgrade your PHP! If it seems like you just heard this from us, you’re not wrong.

By gradually deprecating features and techniques that no longer represent best practices, PHP nudges developers to keep their applications current, ready to address new business needs.

That’s why the PHP committee recently announced PHP 8.2 and froze PHP 7.4. Even PHP 8.0 now receives only security fixes until it enters end-of-life on November 26, 2023.

If you’re feeling helplessly behind, you can relax. Our support team knows how to ease the transition from PHP 7.4, 7.3, 7.2, 7.1—and yes, even PHP 5.x! We can help get you back on track for smaller, easy-to-manage PHP upgrades. And if you opt for SmartSupport, we will walk you through regular PHP tune-ups, making your next upgrade that much easier.

PHP.Net’s calendar of supported versions

So yes, it’s time to upgrade your PHP! Let’s put the legacy of technical debt behind us.

PHP 8.2 Now Available in Seiden CP+ PHP

As part of our commitment to keep PHP applications on IBM i up-to-date, we released our CommunityPlus+ PHP 8.2 for IBM i on December 8, 2022, the day the PHP community announced general availability.

Key changes are highlighted below. For details on PHP 8.2 features, we recommend this coverage by PHP.Watch.

New Features in PHP 8.2

Improvements to ODBC connection string handling (submitted by our own Calvin Buckley)
Readonly Classes: PHP 8.2 builds on PHP 8.1’s ability to declare readonly for class properties to let you declare an entire class as readonly
Allow null, false, and true as stand-alone types
New “Random” extension

Deprecated Features

Dynamic Properties
utf8_encode() and utf8_decode() Functions
Mbstring: Base64, Uuencode, QPrint, and HTML Entity Encodings
${var} String Interpolation

Installing/Upgrading PHP 8.2 on IBM i

While PHP.net offers migration guides, they are not IBM i-specific. Contact us if you’d like our advice on upgrading PHP for use with IBM i applications.

Adding and updating data in a User Index with SQL

I have only dabbled with User Indexes. My recollections of using them were of having to do everything with APIs, mapping system data types to RPG data types, etc. Well, with IBM i 7.5 and 7.4 TR6 comes a SQL procedure that makes the insertion and updating of data in the User Space very easy.

Alas, I still need to use an API, QUSCRTUI, to create the User Index I am going to using in this example.

I have created a RPG to call the API:

Read more »

20 years ago. I was sometimes a bit of cable guy responsible for the IBM BCRS center in Sweden, where we put together new hardware configurations every week for restore tests. Hopeless romantic though..(Just met Martina that year) #ibmi

20 years ago. I was sometimes a bit of cable guy responsible for the IBM BCRS center in Sweden, where we put together new hardware configurations every week for restore tests. Hopeless romantic though..(Just met Martina that year) #ibmi pic.twitter.com/rDRMmq6WT1

– Torbjörn Appehl (@tappehl)13:42 – Dec 13, 2022

Verified by MonsterInsights