Zend Guard PHP 5.4 Encoder Crash

Follow

Issue

During encoding of some projects Zend Guard may display an error message. The encoding process is interrupted. The problem happens only in PHP 5.4 encoder.

These error message are indicative of the problem:

Unknown(line 0): Function registration failed - duplicate name - each

*** Error in `/opt/ZendGuard-6_0_0/plugins/com.zend.guard.core.resources.linux.x86_6.0.0.201305051318/resources/GuardEngine': free(): invalid pointer: 0x0a0aef90 ***

*** glibc detected *** /opt/ZendGuard-6_0_0/bin/../plugins/com.zend.guard.core.resources.linux.x86_6.0.0/resources/GuardEngine: double free or corruption (!prev): 0x08f13a38 ***

 

Environment

Zend Guard PHP 5.4 encoder

GNU/Linux

Resolution

The bug was fixed recently. For PHP 5.4 you should use the fixed version of the encoder. Do the following in the terminal:

cd <Zend Guard directory>
wget http://eu-up.zend.com/files/ZendGuard_Fix_50570.bin.tar.gz
tar xf ZendGuard_Fix_50570.bin.tar.gz
./ZendGuard_Fix_50570.bin

This will replace the bad binaries with the fixed versions.

Details

The problem was triggered by optimizations in PHP 5.4 which were only partially reflected in Zend Guard encoder.

 

 

 

 

 

Have more questions? Submit a request

Comments

  • Avatar
    Juan Carlos Del Rio Junca
    Hi I have the same problem with PHP 5.4 ZEND GUARD 6.0 but in Windows, which patch are avaible to fix my binaries?
  • Avatar
    Nazri Farran

    We also have the same problem to obfuscate * .tpl files

    * .php Files we work correctly.

    Unknown (line 0): Function registration failed - duplicate name - each

    We not find a patch for Windows, because Linux if it exists.

    cd
    wget http://eu-up.zend.com/files/ZendGuard_Fix_50570.bin.tar.gz
    tar xf ZendGuard_Fix_50570.bin.tar.gz
    ./ZendGuard_Fix_50570.bin

    How can we solve this in Zend Guard - 6.0.0 for windows?

    Best regards.

  • Avatar
    Steve Krause

    Same problem for Mac OSX 10.8.5
    Can you provide Binaries for this os?

Powered by Zendesk