Merge branch 'phpng' of git.php.net:php-src into phpng

# By Dmitry Stogov
# Via Dmitry Stogov
* 'phpng' of git.php.net:php-src:
  Fixed wrong comparisons
used only in the #ifdef 0
return ptr, not status
fix casting
Buffer has to be reallocated on each loop iteration
Support for IS_INDIRECT
Buffer has to be reallocated on each loop iteration
Fixed support for empty strings
Fixed support for SOAP_PERSISTENCE_SESSION
Fixed handling of compressed SOAP requests
Partial fix for XML references handling
fixed reference counting and memory leak
Fixed WSDL attibute parsing
Merge branch 'phpng' of git.php.net:php-src into phpng

# By Dmitry Stogov
# Via Dmitry Stogov
* 'phpng' of git.php.net:php-src:
  Fixed WSDL attibute parsing
  fixed reference counting and memory leak
  Partial fix for XML references handling
  Fixed handling of compressed SOAP requests
  Fixed support for SOAP_PERSISTENCE_SESSION
  Fixed support for empty strings
  Buffer has to be reallocated on each loop iteration
  Support for IS_INDIRECT
  Buffer has to be reallocated on each loop iteration
fix TS build
Fixed several test failed
Merge branch 'phpng' of git.php.net:php-src into phpng
test the right length and remove unused var (remaining from 'old' version)
Fixed memory leaks
Finish ext/pdo_pgsql (3 tests fail, 1 due to knew issue, 2 also fails in trunk)