Locks around allocate_new_resource()

[email protected] (Yuxuan Shui)
Newsgroups php.general
Message-ID <CAGqt0zyAVfESki1Svhpvay0bNdk47MvBYED37GC3R9ZKOt5BAw@mail.gmail.com>
Hi,

I don't quite understand why do we need to put locks around
allocate_new_resource(). I skimmed through the code and it seems to be
unnecessary.

I removed relevant locks and tested the resulting mod_php with httpd, and
everything seems to be fine.

-- 

Regards
Yuxuan Shui
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.