@@ -1399,29 +1399,8 @@ static bool php_phongo_apply_ssl_opts(mongoc_client_t *client, zval *zdriverOpti
13991399
14001400static mongoc_client_t * php_phongo_make_mongo_client (const mongoc_uri_t * uri , zval * driverOptions TSRMLS_DC ) /* {{{ */
14011401{
1402- #if PHP_VERSION_ID >= 70000
1403- zval * zdebug = NULL ;
1404- #else
1405- zval * * zdebug = NULL ;
1406- #endif
1407- const char * mongoc_version , * bson_version ;
1408- mongoc_client_t * client ;
1409-
1410- #if PHP_VERSION_ID >= 70000
1411- if (driverOptions && (zdebug = zend_hash_str_find (Z_ARRVAL_P (driverOptions ), "debug" , sizeof ("debug" )- 1 )) != NULL ) {
1412- zend_string * key = zend_string_init (PHONGO_DEBUG_INI , sizeof (PHONGO_DEBUG_INI )- 1 , 0 );
1413- zend_string * value_str = zval_get_string (zdebug );
1414- zend_alter_ini_entry_ex (key , value_str , PHP_INI_USER , PHP_INI_STAGE_RUNTIME , 0 );
1415- zend_string_release (key );
1416- zend_string_release (value_str );
1417- }
1418- #else
1419- if (driverOptions && zend_hash_find (Z_ARRVAL_P (driverOptions ), "debug" , strlen ("debug" ) + 1 , (void * * )& zdebug ) == SUCCESS ) {
1420- convert_to_string (* zdebug );
1421-
1422- zend_alter_ini_entry_ex ((char * )PHONGO_DEBUG_INI , sizeof (PHONGO_DEBUG_INI ), Z_STRVAL_PP (zdebug ), Z_STRLEN_PP (zdebug ), PHP_INI_USER , PHP_INI_STAGE_RUNTIME , 0 TSRMLS_CC );
1423- }
1424- #endif
1402+ const char * mongoc_version , * bson_version ;
1403+ mongoc_client_t * client ;
14251404
14261405#ifdef HAVE_SYSTEM_LIBMONGOC
14271406 mongoc_version = mongoc_get_version ();
0 commit comments