Compability issue with PHP 5.3.3 - 5.3.10
is_ref / refcount fixes