tags:

views:

33

answers:

1

I'm using a compiler that has a slightly older version of PHP than my dev machine (5.1.3 vs. 5.2.6 IIRC). That version doesn't do the auto-conversion, which can result in some sneaky bugs in the compiled version. I'd rather not downgrade my dev box, but if I can somehow turn that off, that might be helpful in finding those earlier.

A: 

Can you define the __toString() function on your classes?

Josh
It _is_ defined. That's what allows 5.2 to do the version. 5.1 still doesn't, unless you're in an echo or print context. http://www.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring
sprugman
er... by "version" I mean "conversion"
sprugman
Oh, and by the link, I'm referring to the "It is worth noting" section below the example code. (It would be nice to be able to edit these comments.)
sprugman
OH. I see what you're saying now. I'm sorry, I misunderstood before. Let me think if there's any way around that...
Josh