Zend Guard, Encoded PHP Files with __FILE__

Follow

Applies To:

[ Zend Guard 5.0.0 ]
[ All operating systems ]

Symptom

PHP scripts encoded by Zend Guard that use the PHP constant __FILE__ may suffer from different misbehavior. Instead of full path to the file you will see it in the current directory -> './' If you rename the file, the return output of __FILE__ will show the name of the original file.

Technical Details

This problem is due to how Zend Guard version 5.0.0 operates. The Encoder can not handle the magic constant in the right way. 

Resolution / Workaround

Upgrade the latest version of Zend Guard.

 


Excerpt: PHP scripts encoded by Zend Guard that use the PHP constant __FILE__ may suffer from different misbehavior.


Original Post Date: 2009-04-22 16:45:53

Alternative Description:

Zend Guard, encoded PHP files with __FILE__

_____
Tags: Apple OS X 10.7 (Lion),Apple OS X 10.8 (Mountain Lion),Apple OS X 10.9 (Mavericks),Debian / Ubuntu,encode,encoder,MacOS 10.6 and earlier,MS Windows 2003 Server,MS Windows 2008 Server,MS Windows 2012 Server,MS Windows 7,MS Windows 8,MS Windows XP,RedHat Enterprise Linux / CentOS,SUSE Linux Enterprise Server / OpenSUSE,Zend Guard,Zend Guard,__FILE__,oldKB

Comments