Hello,

Remove the crap that's eAccelerator. Has very slow development and lot of issues with newer versions of PHP. Got lot of issues with sites after migrating to 5.2.1 and were due to eAccelerator.

Got lot of problems myself with this optimizer. Use better Zend software (i am not associated at all with Zend): Encoder, Accelerator, aso.

--
Cristian Bichis
www.zftutorials.com | www.zfforums.com | www.zflinks.com



Hi all,

Excuse my poor english, i'll try to do my best ;)

Plateform :
Gentoo
eAccelerator v0.9.5
PHP 5.2.1
ZendFramework-0.9.2-beta
Apache 2.0.58

Php Code :
----------------------------------------------------
require_once '/usr/share/php5/Zend/Loader.php';
Zend_Loader::loadClass('Zend_Log');
Zend_Loader::loadClass('Zend_Log_Writer_Stream');
$logger = new Zend_Log();
$writer = new Zend_Log_Writer_Stream('/tmp/testeacc.log');
$format = '%timestamp% %priorityName% (%priority%) : %message%'. PHP_EOL;
$formatter = new Zend_Log_Formatter_simple($format);
$writer->setFormatter($formatter);
$filter = new Zend_Log_Filter_Priority(Zend_Log::DEBUG);
$writer->addFilter($filter);
$logger->addWriter($writer);
$logger->debug('Test OK');
echo 'test OK';
----------------------------------------------------


Error :
Fatal error: Cannot access protected property Zend_Log_Writer_Stream::$_stream 
in /usr/share/php5/Zend/Log/Writer/Stream.php on line 64

Line 64 :
if (! $this->_stream = @fopen($streamOrUrl, $mode, false))

At line 43 :
protected $_stream = null;

If i change :
protected $_stream = null;
to:
protected $_stream = false;

All works for this part but :
Fatal error: Cannot access protected property 
Zend_Log_Formatter_Simple::$_format in 
/usr/share/php5/Zend/Log/Formatter/Simple.php on line 57

Same thing, if i change :
protected $_format;
to
protected $_format=false;

It's OK.

Ok but the same problem occure with Framework each time a property is
instaciate via :
$_var = null;
or
$var

Is there a way (PHP config?) to resolve this pb or perhaps i must ask
to eAccerlerator devs ? ;)

Reply via email to