[Solar-talk] Solar_Struct
Antti Holvikari
anttih at gmail.com
Thu Jul 20 04:18:01 PDT 2006
On 7/20/06, Paul M Jones <pmjones at solarphp.com> wrote:
> On Jul 20, 2006, at 5:48 AM, Antti Holvikari wrote:
>
> > On 7/20/06, Paul M Jones <pmjones at solarphp.com> wrote:
> >>
> >>>> Sorry for the trouble man.
> >>>
> >>> No prob. It might all be at my end.
> >>
> >> More likely a combination of both of us. :-)
> >
> > Crap. It was 1 am last night and I forgot to set the include_path for
> > the tests to point to svn co. There's still something wrong though. I
> > get really strange errors with my code. I will take a look at it first
> > to make sure it's not me again.
> >
> > Shouldn't Solar_Struct objects now work *exactly* like the old array
> > results? I mean, should the BC break be basicly gone now?
>
> Either exactly, or very close; I was able (when I first wrote it) to
> drop it in without any changes to the rest of my code, other than
> having to use "{$struct->foo}" instead of "$struct->foo". What's it
> doing or not-doing?
I'm trying to use it in foreach and I get:
"Objects used as arrays in post/pre increment/decrement must return
values by reference in <file>"
If I change the foreach from foreach($this->item['info']... to
foreach($this->item->info... I get this:
"Fatal error: Cannot use array returned from
Solar_Sql_Row::__get('info') in write context in <file>"
Really odd I would say.
Also, "PHP Strict: Declaration of Solar_Sql_Rowset::load() should be
compatible with that of Solar_Struct::load()"
--
Antti Holvikari <http://antti.dotgeek.org/blog>
Zend Certified Engineer (ZCE)
More information about the solar-talk
mailing list