Compilation bug - object iteration

2 views
Skip to first unread message

fdx

unread,
Mar 1, 2008, 1:16:51 AM3/1/08
to eaccelerator-developers
Hi,

I'm trying to compile a script that does an object iteration, and it
fails:

# php -q 1.php
testProperty => default => Here the 1.php script runs
correctly.
# php -q encoder.php -sphp 1.php -o 2.php
eAccelerator Encoder ERROR: Can't compile file "1.php"

Environment, (Linux x86):
- Apache 2.2.6
- PHP 5.2.5
- eaccelerator-0.9.5.2

eAccelerator configuration:
./configure \
--enable-eaccelerator=shared \
--with-php-config=/usr/local/php5/bin/php-config \
--with-eaccelerator-crash-detection \
--with-eaccelerator-optimizer \
--with-eaccelerator-encoder \
--with-eaccelerator-loader

Here are the 1.php file contents:
<?

class TestClass {
public $testProperty = "default";
}

$testClass = new TestClass();
foreach($testClass as $key => $value)
{
echo "{$key} => {$value}\n";
}

?>


Thanks in advance!!
Reply all
Reply to author
Forward
0 new messages