Is there a way to turn off auto-conversion of objects to strings in php 5.2?
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 do开发者_C百科wngrade my dev box, but if I can somehow turn that off, that might be helpful in finding those earlier.
Can you define the __toString()
function on your classes?
精彩评论