AFAIK, the only way this could be an issue with the language is if you use serialize/unserialize, which can be used on classes. It goes without saying that this can be useful in certain contexts - such as file-based caching - but should not be relied upon too heavily.
I cannot remember the last time I came across a php project that did something similar.
I cannot remember the last time I came across a php project that did something similar.