Fix stream_select() issue with OpenSSL buffer

Ensure data from OpenSSL internal buffer has been
transfered to PHP stream buffer before a select()
emulation operation is performed

Addresses bug #65137
https://bugs.php.net/bug.php?id=65137

Conflicts:
	ext/openssl/xp_ssl.c
Fixed corruption of execute_data when ZEND_STRLEN has to cast an object to string.
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Fix stream_select() issue with OpenSSL buffer

Conflicts:
	ext/openssl/xp_ssl.c
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fix stream_select() issue with OpenSSL buffer
Cleanup IS_VAR handling
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix stream_select() issue with OpenSSL buffer
Use efree_size() instead of efree() where posible