Seiden Group
Modern Development & Open Source for IBM i
  • Link to LinkedIn
  • Link to Mail
  • Home
  • Seiden PHP+
    • Seiden PHP+
    • Install & Learn
    • SmartSupport
    • PHP Migrations & Upgrades
    • Success Stories
    • Free PHP Assessment
    • Documentation
    • What’s New (Changelog)
  • IBM i Services
    • Development
    • Training & Mentoring
    • Open Source Setup & Upgrades
    • SSL/TLS Install & Learn
    • Performance
  • Support
    • Open Source & PHP
    • VS Code for i
    • Developer Support
    • Support Success Stories
  • VS Code for i
    • Support
    • Training
    • Code for i Resource Guide
    • Getting Started Videos
    • Code for IBM i Fridays
  • Free Stuff
    • IBM i Strategy & Tips
    • PHP Upgrade Assessment
    • CNX Valence Assessment
    • VS Code for IBM i Resources
    • Code for IBM i Fridays
    • QCachegrind Download
    • PHP Toolkit for IBM i Resources
    • Qshell on i Library
  • Blog
  • About
    • About Our Team
    • About Alan Seiden
    • Speakers & Sessions
    • In the News
  • Contact
  • 201.447.2437
  • Search
  • Menu Menu

Seiden Group Blog

Resources for Upgrading to PHP 7 on IBM i

July 24, 2017/1 Comment/in Db2 for i, PHP /by Alan Seiden

Editor’s Note: The information in this article is useful for historical context but is now out of date. We currently recommend Seiden PHP+ as the most reliable PHP distribution for IBM i.

PHP 7 Zend ServerNow that speedy PHP 7 is available for IBM i, we’ve been helping clients upgrade to this long-awaited release. Here are some resources for performing this popular upgrade.

First, we recommend Rod Flohr’s article Migrate to Zend Server 9 from Previous Versions, which contains both basic instructions and special tips.

The process is more of a migration than an upgrade. Because PHP 7 installs to a different location than old releases, applications can be tested in parallel using old and new PHP simultaneously. Thus, even shops having only one IBM i partition can test PHP 7 before going live.

The new locations are the ZENDPHP 7 library and the IFS directories /www/zendphp7 and /usr/local/zendphp7 (or /QOpenSys/pkgs/bin for RPM packages). The old locations were ZENDSVR6, /www/zendsvr6, and /usr/zendsvr6. Be sure to apply permissions and test them according to what worked in the old locations.

We haven’t seen any removal of core or critical functionality from PHP. Some older and less common functionality, however, that was deprecated (marked for future removal) in previous releases has been removed in PHP 7.

To see what functionality has been removed or changed, see these resources:

  • https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7
  • http://php.net/manual/en/migration70.incompatible.php

One backward-incompatible change was the removal of deprecated bundled extension ext/mysql; functions starting with “mysql_”, such as mysql_connect(), no longer work. The extension ext/mysql could be added back, if needed, as an ordinary PECL extension, but we recommend using the superior ext/mysqli (“mysql improved”) or PDO, which both support prepared statements (essential for security) and have been available since PHP 5.

Db2 functions such as db2_connect(), db2_prepare(), db2_execute() work as they did in PHP 5. Applications should be tested, of course, but there are no known issues with ibm_db2 in PHP 7 at this time.

Let us know if you’d like help migrating to PHP 7 and realizing its benefits in your shop.

Tags: DB2, IBMi, PHP, PHP 7, Zend Server
Share this entry
  • Share on Facebook
  • Share on X
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Reddit
  • Share by Mail
https://www.seidengroup.com/wp-content/uploads/2017/03/SeidenLogo-180.png 0 0 Alan Seiden https://www.seidengroup.com/wp-content/uploads/2017/03/SeidenLogo-180.png Alan Seiden2017-07-24 12:11:242025-12-18 13:14:36Resources for Upgrading to PHP 7 on IBM i
Alan Seiden

About Alan Seiden

Alan works to preserve your investment in IBM enterprise systems by designing and implementing modernization strategies that leverage your existing business logic.

With a passion ...Read More

1 reply
  1. Paul Foster
    Paul Foster says:
    September 5, 2017 at 9:59 pm

    Thanks Alan, I’ve installed zendphp7 and it is generally performing well.

    I’ve noticed one change …. php.log is now full of the following warning message:
    “PHP Warning: Module ‘ibm_db2’ already loaded in Unknown on line 0”

    This caused problems with return values as they are preceded by the warning message. Turning off display_errors in php.ini fixed this (probably should be off anyway) but the log is getting hammered even with error_reporting set to E_ERROR|E_CORE_ERROR|E_RECOVERABLE_ERROR.

    Any thoughts on how this can be prevented?

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

SUBSCRIBE
Open Thinking
Monthly IBM i Strategy & Tips
  • This field is for validation purposes and should be left unchanged.

IBM i Development

  • RPG, COBOL, SQL, Node,
    PHP, Python, Valance, etc.
  • Modernization. Integration.
  • Web and API Solutions
  • Legacy Maintenance
    ...
LET'S GET IT DONE!

Recent Posts

  • Mitigating the eMudhra Intermediate CA Compromise with IBM i
  • Critical Security Update Available in Seiden PHP+ Server
  • Moving to IBM i 7.6? An SDA Alternative with VS Code and IBM Bob
  • What’s New with Mapepire Database Connector for IBM i
  • Do You Need IBM i Observability?
  • PHP 8.6 is Coming Soon to IBM i
  • Safer npm installation is on the way for Node.js (and all JavaScript)
  • Access Modern Security for IBM i and Connected Web Environments
  • IBM i: A Natural Platform for Agentic AI
  • PHP on IBM i in 2026: The Modernization Engine

SEIDEN GROUP: Modern Development & Open Source for IBM i

Home   |   Seiden PHP+   |   IBM i Services  |   Support   |   VS Code for i   |   Free Stuff   |   Blog  |   Privacy Policy  |   Contact         201.447.2437

© 2026 Seiden Group, LLC
  • Link to LinkedIn
  • Link to Mail
Link to: Learning the Latest on Laravel Link to: Learning the Latest on Laravel Learning the Latest on Laravel Link to: Next IBM i CIO Summit to be held October 16-17, 2017, Minneapolis Link to: Next IBM i CIO Summit to be held October 16-17, 2017, Minneapolis Next IBM i CIO Summit to be held October 16-17, 2017, Minneapolis
Scroll to top Scroll to top Scroll to top