krakjoe/pthreads — pull request #42 by bwoebi (2013-01-12 01:06:18+00:00)
Title: Fixed what I wanted in #36

(It's the first time I try do something with the Zend-Engine...)

What I've done is simple: recursing through the object-properties and arrays. Every resource and incomplete or not copyable object (like mysqli) is replaced by a NULL. It's the easiest way to share simple arrays (and even complex types (most objects and deep arrays)) and prevent segfaults in the same time.