Lee
On 10/25/06,
Keith Pope <[EMAIL PROTECTED]> wrote:
Could it be php 5.0.x bug maybe?Does Zend Platform use its own version of PHP, it could be fixed in that version?Keith
From: Lee Saferite [mailto:[EMAIL PROTECTED]]
Sent: 25 October 2006 16:01
To: Zend Framework General
Subject: Re: [fw-general] Weird Issue (Slightly OT)Wow,
I'm not a master PHP programmer, so this confuses me.
This fails:
public function __get($key)
{
/**
* @todo exception?
*/
if ($key[0] != '_') {
return isset($this->_vars[$key]) ? $this->_vars[$key] : null;
}
}
Yet this doesn't:
public function __get($key)
{
/**
* @todo exception?
*/
if ($key[0] != '_') {
if(isset($this->_vars[$key]))
{
return $this->_vars[$key];
}
else
{
return null;
}
}
}
On 10/25/06, Lee Saferite <[EMAIL PROTECTED]> wrote:Ok, so I tried changing the __get method of the Zend_View_Abstract class to one I found here:
http://framework.zend.com/issues/browse/ZF-298
And not it works.
So, could someone explain to me what is going on exactly?
I mean, the Zend_View_Abstract code works fine using Zend Platform, yet chokes without it?
Lee.
On 10/25/06, Lee Saferite <[EMAIL PROTECTED]> wrote:=) Good call. Too much Cut and Paste. we DO use ZF on the laptops.
And as an update, I have further isolated it to the __get/__set functions having the issue.
Lee.
On 10/25/06, Christopher Östlund < [EMAIL PROTECTED] > wrote:Just making sure the below quote was a typo. Not using Zend Framework on the demo laptops running the Zend Framework application?
On 10/25/06, Lee Saferite <[EMAIL PROTECTED]> wrote:
Software details:
------------------------
Apache 2.0.52
PHP 5.0.4
Zend Framework 0.1.5 (not on demo laptops)
