encoded php files bug
| From: | walt boring | Date: | Fri, 11 Jul 2003 23:26:58 +0000 |
| Subject: | encoded php files bug | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-3371@lists.php.net to get a copy of this message | ||
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";
?>