开发者

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜