Re: Re: question about defining constants and pear coding standards

From: Date: Mon, 25 Sep 2006 17:46:33 +0000
Subject: Re: Re: question about defining constants and pear coding standards
References: 1 2 3 4 5 6 7 8  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-44057@lists.php.net to get a copy of this message
Terra Frost wrote:
<snip> That will *not* solve anything. getStaticProperty will try to reference $properties['Some_Object']['mode'] which is *only* going to exist if those two lines were added. But what if those lines haven't been added? Adding a default: in the switch statement isn't going to change the fact that getStaticProperty is trying to reference something that was never initialized. I added error_reporting(E_ALL) to one of my examples in a previous email, and... I didn't get an error, even though $properties['Some_Object']['mode'], in getStaticProperty, hasn't been initialized. I thought I had done this before and had gotten an error, then, but maybe I didn't...
Anyway, please ignore my last email...

« previous php.pear.dev (#44057) next »