fix a very rare case of use of uninitialized value combined with a
memleak
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  fix a very rare case of use of uninitialized value combined with a memleak