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

PHP Toolkit for IBM i Conversion Tips

September 16, 2017/0 Comments/in PHP /by Alan Seiden

PHP Toolkit for IBM iRecently we’ve heard from several clients seeking help with Zend Server upgrades. While generally straightforward, upgrades can require an extra step with very old versions of Zend Server. “Old” means Zend Core or Zend Server 5.1 or earlier. Upgrades from these old versions may require a migration from Easycom to the “new” PHP to IBM i toolkit.

From 2006–2011, Zend Core/Server provided a special edition of the Easycom toolkit, which performed program calls and database queries. The prefix “i5_” makes Easycom function easy to spot. (Back in 2006, “i5/OS” was the name of the operating system that later became IBM i.)

In 2012, Zend replaced the older toolkit with a new, open-source toolkit leveraging native IBM access to the DB2 database. Developed by Seiden Group in collaboration with IBM and Zend, this free toolkit works with all versions of Zend Server. Shops who forget to upgrade their old toolkit will receive the error message “Call to undefined function i5_connect()” or “Call to undefined function i5_pconnect().”

Find your i5_ functions

To learn whether your code uses Easycom and to what degree, search for find the i5_* functions by running recursive “find” commands from either PASE or SSH, as shown below:

call qp2term [opens a PASE terminal. SSH would work, too.]
cd /www/zendsvr/htdocs [or wherever your PHP code is located]

find ./ -name \*.php\* | xargs grep “i5_”

You may ignore strings such as ‘i5_lib’ and ‘i5_libl’. Focus on the function calls, such as these:

  • Connections: i5_connect or i5_pconnect. (
  • Database queries: i5_query, i5_prepare, i5_execute, i5_num_rows, i5_fetch_object, i5_free_query
  • Program calls: i5_program_prepare, i5_program_call
  • Data queue: i5_dtaq_prepare, i5_dtaq_send, i5_dtaq_receive
  • Data areas: i5_data_area_read, i5_data_area_write

Convert to the New PHP Toolkit for IBM i

Although one solution is to purchase a paid Easycom license from Aura Equipements in France, most of our clients have opted to  convert i5_* functions to free tools, a combination of native db2_* functions (for queries) and “new toolkit” calls (for program calls and other non-database-query functions). Everything needed is shipped with Zend Server today. The new toolkit is open source, its code understood by many in the community, therefore easy to support and find answers for.

We’ve helped many IBM i shops create and implement a plan to smooth their PHP toolkit upgrades. From our years of experience, we’ve built an issue checklist and remediation processes that result in faster, easier conversions.

Contact me to discuss how we could save you time and effort with your upgrade.

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-09-16 12:21:132018-01-24 11:27:59PHP Toolkit for IBM i Conversion Tips
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

0 replies

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: 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 Link to: Open-Source Tools (rsync, cURL, Git and more) on IBM i Link to: Open-Source Tools (rsync, cURL, Git and more) on IBM i Open-Source Tools (rsync, cURL, Git and more) on IBM i
Scroll to top Scroll to top Scroll to top