On Sep 2, 2008, at 10:10 AM, Heimo Laukkanen wrote: > Hi all, > > it seems that I stumbled into a small bug that surfaces itself only in > larger application when I try to use an objects member as a parameter > to a function. > > I made a smaller testcase, where this behaviour does not show itself - > but in my larger application it comes up. > > If I try to call a method like this: > $this = userHasProfile($user->uid); > > The method gets empty variable. > > However if I assign the member first to a local variable: > > $a=$user->uid; > $this = userHasProfile($a); > > The method gets the variable value as supposed.
What does the userHasProfile declaration look like? Specifically, is the argument a reference or a normal value. Also, do you see this in compile-mode or interpreted mode. -- Scott > > > In normal php the application works without a hitch. > > -huima > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest