I've just checked for introduction time of this function. I was introduced with pcre 6.0 in 2007. It is a bit old so I don't think this should be an issue for users. Do I convert the code to pcre_copy_substring anyway ?