add include for definition of php_url_encode
add BC breaks from PHPNG RFC
Fix the fix for bug #55415
Revert "Removed useless local variable"

This reverts commit 44ae32ad55b9ceee9eb980edefcc62df6cff3eef.

It doesn't work properly. We can't access call->scope after free.
removed the extra tsrm pointer passed to ctor/dtor
Merge remote-tracking branch 'origin/master' into native-tls

* origin/master:
  Revert "Removed useless local variable"
  Fix the fix for bug #55415
  add BC breaks from PHPNG RFC
  add include for definition of php_url_encode