Toorop --

I think you're going to need to contact the eaccelerator team regarding
this, as the PHP is syntactically correct; eaccelerator is for some
unknown reason altering the behaviour.

-- Toorop - Protecmail <[EMAIL PROTECTED]> wrote
(on Wednesday, 02 May 2007, 06:24 PM +0200):
> 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 ? ;)
> 
> -- 
>  Toorop
> ------------------------------------------------------------------------------------
>           Solutions antivirus et antispam : http://www.protecmail.com
> ------------------------------------------------------------------------------------
> 

-- 
Matthew Weier O'Phinney
PHP Developer            | [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/

Reply via email to