Pushing the Boundries of PHP

You must be doing something right when you can send PHP into a tail spin. That or the code you’re trying to do is just evil. Turns out __destruct() and __call() don’t play well together in 5.2.4 if, and only if, you create an instance of an object without assigning it.

I ran into this when I coded this up:

ensure('foobar')->equals('barfoo');

It’s for a secret project… ;-)

Check the full bug for more info.