Categories > TinyButStrong general >

ObjectRef not working in new TBS 2.05.5 PHP5 version

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Matt Puchlerz
Date: 2006-01-23
Time: 00:13

ObjectRef not working in new TBS 2.05.5 PHP5 version

Hello.  I'm fairly new to using TBS, so I may be doing something stupid here...

But have spent quite a bit of time trying to figure out why an object property wouldn't print out in my template.  I couldn't figure out what I was doing wrong.  Then I thought maybe it wasn't me, and I switched out the PHP5 version of TBS with the regular version.  Worked right away.

Just thought I'd throw this out there.
By: Skrol29
Date: 2006-01-23
Time: 02:03

Re: ObjectRef not working in new TBS 2.05.5 PHP5 version

I guess you have this problem with PHP 5.
If it's so, could you send to me a snippet so I could reproduce the bug?
By: Matt Puchlerz
Date: 2006-01-23
Time: 07:20

Re: ObjectRef not working in new TBS 2.05.5 PHP5 version

http://www.puchlerz.com/other/ObjectRef_PHP5_Test.zip

Above is a link to the zip file containing my test scenario. If you go into the php5_test.php and include the PHP4 version rather than the PHP5 version, you'll see that it suddenly works.
By: Jeff
Date: 2006-01-23
Time: 14:30

Re: ObjectRef not working in new TBS 2.05.5 PHP5 version

Hi,

Yes, I am having the same problem. I can access methods from a class through the ondata parameter in the HTML without any problems but I am not getting a value and getting no errors from TBS while trying to get a public attribute.
By: Skrol29
Date: 2006-01-23
Time: 16:27

Re: ObjectRef not working in new TBS 2.05.5 PHP5 version

Hi,

Ok I've reproduced the bug.
This problem occurs with PHP 5.0.5 or higher (until 5.1.2  which is the last one for now). But it doesn't occur with PHP between 5.0 and 5.0.4.

This is, agin, a problem about variable referencement.
I'm working on this bug now...
By: Skrol29
Date: 2006-01-23
Time: 17:48

Re: ObjectRef not working in new TBS 2.05.5 PHP5 version

Hi,

TBS 2.05.7 is now available for download and it should fixe this problem.

Thanks to both of you for reporting it.