Bug #19964 - only call legacy constructor on PHP 4, allows gc cleanup on PHP 5