Legacy Modernization

Zend Guard and PHP 7: what to ask the vendor of an encoded module

How to spot a Zend Guard-encoded module, what to ask its vendor for in writing, and which outcomes remain for one application.

Two outcomes for one encoded module side by side, the vendor build marked as preferred and replacing the module left open, each with the condition under which it applies.
In this article
  1. Confirm which modules the application holds
  2. Explain why the module blocks the upgrade
  3. Ask the module vendor the right questions
  4. Work through an illustrative application with one encoded module
  5. Separate vendor-encoded code from the framework and the runtime
  6. Decide what changes in the one application
  7. Know who can unblock the module

Zend's product page for Zend Guard states “Zend Guard Has Reached EOL” and “Zend Guard cannot be ported to PHP 7 or beyond”. It also states “Zend Guard supports PHP versions up through 5.6”. Zend lists PHP 5.3 through 5.6 as the releases that Zend Guard Loader runs on; the loader is the PHP extension that runs encoded files. An encoded vendor module therefore keeps the application on PHP 5.6 until the vendor issues another build, so the blocker is the vendor's question.

Here an encoded module means vendor code shipped as files that Zend Guard has turned into a binary format instead of readable PHP. The facts below come from the product makers' own pages and from php.net; they describe the products and do not assess your application. The working tool is a record: one page for one application, with an entry for each encoded module. The record ends in a written request for a vendor build, meaning a version of the module that the vendor issues for a named PHP release. When procurement holds the vendor contract, the record also has to make sense to a reader outside engineering.

Confirm which modules the application holds

The answer sits on the production servers, in the vendor's delivery and in the vendor's documents. A developer's copy of the code shows what the team wrote, while the encoded files come from the vendor's delivery.

Record the module, the vendor and the contract holder

The record names each encoded module and its vendor. It also names the contract holder, the person or team that holds the agreement with that vendor. Then come the PHP release the module was built for, the loader it needs, the PHP release running in production and the target release the team has chosen. The last fields are the written request to the vendor, the vendor's answer and the date of that answer. Each field cites where the fact comes from: the vendor's delivery, such as the package and its notes, or the vendor's documents. The built-for release carries the most weight, because Zend ties files encoded with Zend Guard 7 to the PHP version used to encode them.

Recognise encoded files in the code base

Zend's documentation describes where encoded files show up, in the Zend Guard user guide and the Zend Server documentation. Each sign lives on a production server or in the vendor's delivery, so a developer workstation may not show it:

  • The PHP configuration on the production server loads Zend Guard Loader.
  • On Zend Server, the server information page, Server Info, shows a Zend Guard Loader section, as Zend's release notes for Zend Guard 7 describe.
  • The module's files do not read as ordinary PHP, and each may open with a visible header giving the vendor's copyright and version.
  • A vendor license file ending in .zl may sit near the module, with its path recorded in the PHP configuration.

These signs come from Zend's documentation alone: they name the blocker and do not test or assess your application.

Explain why the module blocks the upgrade

Four reasons keep the module where it is, even if your own code is ready. First, the application owner holds no source code for the module. The Zend Guard user guide says encoded files can no longer be edited, and any attempt to change one leaves it unusable. Second, Zend Guard Loader runs only on PHP 5.3 through 5.6, and the Zend Server documentation says each web server that runs encoded files needs it. In a 2016 blog post, Zend announced its decision not to port Zend Guard to PHP 7 and beyond.

Third, a new build starts from the source code. The product page describes encoded files as shipped instead of the plain-text PHP, so the source stays with the vendor. What the vendor may or must do about a new build is set by its license, and this article does not interpret that license. Fourth, the Zend Guard 7 release notes state that encoded applications are compatible only with the PHP version they were encoded with. That statement covers Zend Guard 7, and it is why the record names the release each module was built for.

Ask the module vendor the right questions

Send the request in writing, through the contract holder, and keep each question about a fact of the delivery:

  1. Will you issue a build of the module for our target PHP release, or state that none will be issued? If our documents do not show it, which PHP release was the current build made for? If the module uses a license file, will the new build come with one for the target server?
  2. Which license terms apply to a new build?
  3. Which support terms cover the module after the move?
  4. On what date is this answer given?

The first question covers the license file because it is validated at run time and can be limited to specific hardware, as the Zend Guard product page states.

Read the vendor's answer

Each answer falls into one of three cases, and each goes into the record with its date. If a build is issued, the record notes the release it targets and any license file that came with it. If the build is refused, the record keeps the vendor's written statement, which settles the question for that module. If no answer comes, the record keeps the date the request went out and each follow-up, until the contract holder decides how long to wait.

Work through an illustrative application with one encoded module

The application below is fictional and illustrative: an agent portal of a US insurance carrier, running on PHP 5.6. Agents use it to quote policies. It holds three modules: the carrier's own code, an open source library and a vendor's encoded rating module that calculates premiums. The carrier's code is ready for a supported release, and the rating module is the open question. Facts the team has not yet confirmed stay unknown in the record.

Field What is recorded Source
Module Rating module, shipped as encoded files Vendor's delivery package
Vendor and contract holder Rating vendor; procurement holds the contract Vendor contract on file
Built for PHP 5.6 Vendor's release notes in the delivery
Loader needed Zend Guard Loader Production PHP configuration
Production and target PHP 5.6 now; target is a supported release Production server; team decision
Written request Sent to the vendor through procurement Copy of the request
Vendor's answer and date Unknown Awaiting the vendor's reply

The result of the example is a ready request to the vendor. The record already carries every fact the vendor needs to answer, and the one empty field is the answer itself.

Separate vendor-encoded code from the framework and the runtime

The encoded module, the framework and the PHP release are three separate questions with different owners. Zend Framework 1 in the carrier's own code is another question, with its own fix channel. Since 2018-12-31, PHP 5.6 has received no fixes from php.net; paid extended support, if the team has it, holds the application on 5.6 and gives the module no new build.

Decide what changes in the one application

The vendor's answer leads to one of three outcomes, in this order. If the vendor issues a build for the target PHP release, no project is needed, and that is an honest outcome. If the vendor no longer exists or stays silent, the contract holder looks for a successor to the vendor and for any escrow or source code transfer agreement. If neither turns up, the module is replaced by another component or by the carrier's own code.

Choice diagram for one encoded module after a written request to its vendor. Vendor build, the preferred outcome, applies when the vendor issues a build for the target PHP release. Replace the module, the other outcome, applies when there is no build, no successor and no source agreement.
The vendor's written answer decides which of two outcomes the one application takes.

Replacing one module is a limited change to one application, the kind of scoped work that PHP migration services cover.

Treat an ionCube module as a separate check

ionCube is a different encoder with its own loader. In a post published 2026-06-08 and updated 2026-10-20, ionCube writes “PHP 8.2–8.4 encoded files can run on up to PHP 8.5”, given the matching loader on the server. The same post says compatibility usually stays within one PHP generation, meaning one major version, and does not typically cross from PHP 7 to PHP 8. It also notes that its examples hold at the time of writing. A module encoded with ionCube for PHP 5 or 7 therefore typically still needs a new vendor build, and the question for the vendor is the same.

Define application work only for a real blocker

Work on the application's code is justified only by a named blocker, such as a module with no vendor and no source code. That change covers the one module and the code that calls it. Release to production and any later change of the module are separate decisions, each agreed on its own terms.

Know who can unblock the module

The completed record shows what one module needs from its vendor and who can answer. The smallest remaining decision may be no project at all, when the vendor issues a build. If one application is blocking a platform step, bring the component, version and workflow to discuss the next justified result. Discuss one application once the vendor's answer, or its absence, is on record.

Frequently asked questions

Can files encoded with Zend Guard run on PHP 7 or 8?

Zend says Zend Guard cannot be ported to PHP 7 or beyond, and it lists Zend Guard Loader only for PHP 5.3 through 5.6. The Zend downloads catalog matches that list: it offers loader files for PHP 5.3, 5.4, 5.5 and 5.6 and none for PHP 7 or later. A supported release needs a new build from the module vendor.

Is Zend Guard still supported?

No. The Zend product page for Zend Guard carries the status “Has Reached EOL” and names no end-of-life date. In a 2016 blog post, Zend announced its decision not to port Zend Guard to PHP 7 and beyond. For an application with an encoded module, the next question therefore goes to the module vendor, who holds the source code.

How do we recognise Zend Guard-encoded files in the application?

Start with the production servers and the vendor's delivery. The Zend Guard FAQ says a vendor's customers need Zend Guard Loader as part of their PHP setup, so the loader shows up in the production PHP configuration. The vendor's delivery notes and documents then confirm which module is encoded and which vendor shipped it.

What should we ask the module vendor for?

Ask for a build of the module for the target PHP release or a written statement that none will be issued. Also ask for the license and support terms that apply and for a dated reply. Send the request through the contract holder, often procurement, so the answer reaches the person who can act on the contract.

What if the vendor no longer exists?

The contract holder looks for a successor that took over the vendor's products and for any escrow or source code transfer agreement. If either exists, the request goes there. If neither exists, no party the contract holder can reach holds the source for a new build. What remains is replacing the module with another component or the carrier's own code.

Is a module encoded with ionCube the same problem?

Partly. ionCube is another encoder with its own loader, and its loader page records a full release of loaders for PHP 8.5. Its post says files encoded for PHP 8.2 to 8.4 can run on PHP 8.5. Compatibility usually stays within one major PHP version, so a module built for PHP 5 or 7 typically needs a new vendor build.

Can the encoded module be used without the vendor?

The right to the module's source code and to a re-issued build rests with the module vendor under its license. When the vendor cannot be reached, the step that remains for the application is replacing the module with another component or with the carrier's own code.

Why does an encoded module block the upgrade when our own code is ready?

The team's ready code and the module have different owners. The module arrives as encoded files that only Zend Guard Loader runs, and Zend offers it for PHP 5.3 through 5.6 only. If the module uses a license file, it is checked at run time and can be bound to specific hardware, so a server move may need the vendor.

Insights

Keep reading

contact us

Share your software ideas with our expert team

Form before footer redesign

What our clients say