follow up to r111468 - put in compatibility for php 5.2 using debug_backtrace hack