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";
?>
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php