Fix memory realted to #64726
Merge branch 'PHP-5.3' into PHP-5.4
Fixed bug #64726 (Segfault when calling fetch_object on a use_result and DB pointer has closed)
Merge branch 'PHP-5.4' into PHP-5.5
Update NEWS
Merge branch 'PHP-5.5'
Also fixed bug #64726 in 5.3
Merge branch 'PHP-5.3' into PHP-5.4
Merge branch 'PHP-5.4' into PHP-5.5
Merge branch 'PHP-5.5'
fix #64725, wrong res check
Merge branch 'PHP-5.5'

* PHP-5.5:
  fix #64725, wrong res check
Merge branch 'master' of git.php.net:php-src