Skip to content

Commit 99e499a

Browse files
committed
Trace returns from phongo_stream_initiator()
1 parent b67907e commit 99e499a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

php_phongo.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,22 +1219,22 @@ mongoc_stream_t* phongo_stream_initiator(const mongoc_uri_t *uri, const mongoc_h
12191219
php_stream_free(stream, PHP_STREAM_FREE_CLOSE_PERSISTENT | PHP_STREAM_FREE_RSRC_DTOR);
12201220
bson_set_error (error, MONGOC_ERROR_STREAM, MONGOC_ERROR_STREAM_INVALID_TYPE, "Failed to setup crypto, is the OpenSSL extension loaded?");
12211221
efree(dsn);
1222-
return NULL;
1222+
RETURN(NULL);
12231223
}
12241224

12251225
if (php_stream_xport_crypto_enable(stream, 1 TSRMLS_CC) < 0) {
12261226
zend_restore_error_handling(&error_handling TSRMLS_CC);
12271227
php_stream_free(stream, PHP_STREAM_FREE_CLOSE_PERSISTENT | PHP_STREAM_FREE_RSRC_DTOR);
12281228
bson_set_error (error, MONGOC_ERROR_STREAM, MONGOC_ERROR_STREAM_INVALID_TYPE, "Failed to setup crypto, is the server running with SSL?");
12291229
efree(dsn);
1230-
return NULL;
1230+
RETURN(NULL);
12311231
}
12321232

12331233
if (!php_phongo_ssl_verify(stream, host->host, error TSRMLS_CC)) {
12341234
zend_restore_error_handling(&error_handling TSRMLS_CC);
12351235
php_stream_pclose(stream);
12361236
efree(dsn);
1237-
return NULL;
1237+
RETURN(NULL);
12381238
}
12391239

12401240
zend_restore_error_handling(&error_handling TSRMLS_CC);

0 commit comments

Comments
 (0)