encoded php files bug

php.internals

Walt Boring

23 years ago
Howdy, I have the latest version of the encoder and optimizer installed and am running php 4.3.2. I have a simple test script below which shows that encoded files complain that __CLASS__ and __FUNCTION__ are undefined. $ php ~/EncoderBug2-enc.php Notice: Use of undefined constant __CLASS__ - assumed '__CLASS__' in /home/waboring/EncoderBug2-enc.php on line 13 Notice: Use of undefined constant __FUNCTION__ - assumed '__FUNCTION__' in /home/dl/EncoderBug2-enc.php on line 13 file=/home/waboring/EncoderBug2-enc.php, line=12, class=__CLASS__, func=__FUNCTION__ Source/test file: <?php class EncBug1 { function bug1() { return "file=" . __FILE__ . ", line=" . __LINE__ . ", class=" . __CLASS__ . ", func=" . __FUNCTION__; } } echo EncBug1::bug1() . "\n"; ?>

Derick Rethans

23 years ago
On Fri, 11 Jul 2003, walt boring wrote:
> Howdy, > I have the latest version of the encoder and optimizer installed and am running
Please file these bugs with the Zend people, it's not a PHP problem. Derick
-- "Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails." ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ -------------------------------------------------------------------------