adapt test to curl 7.35.0 upgrade

which is a security one and should be performed as in
http://curl.haxx.se/docs/adv_20140129.html
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  adapt test to curl 7.35.0 upgrade
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  adapt test to curl 7.35.0 upgrade