> You can check for BG(serialize_lock) instead of GC_G(gc_active) > What if there was an extension that call php_var_serialize without locking? I know there probably isn't any but still I don't think that this is a nice way how to provide data for serialization.
> What I think is that we should add an extra parameter to get_properties > instead of keeping adding these. > That would be nice. I will send a patch later and then we can discuss it... ;)