Fixed invalid free, discovered by scan-build
Merged Pull Request #368

* pull-request/368:
  Fixed invalid free, discovered by scan-build
This function must return 0 on failure

Dicovered by scan-build
Merged Pull Request #369

* pull-request/369:
  This function must return 0 on failure
Skip for 5.2
E_DREPCATED IS E_STRICT in 5.2
protected/private properties are dumped differently in 5.2
Fix PHP5.2 build