Make PHP references think they have a non-zero refcount

This appears to help the tests run, but things run out of memory
very quickly, so it's difficult to tell