@@ -584,6 +584,7 @@ void pack_key(zval *args, char select, zval *arr) {
584
584
array_init (arr );
585
585
return ;
586
586
}
587
+ Z_TRY_ADDREF_P (args );
587
588
array_init (arr );
588
589
add_next_index_zval (arr , args );
589
590
}
@@ -659,7 +660,7 @@ int get_spaceno_by_name(tarantool_connection *obj, zval *name) {
659
660
}
660
661
661
662
if (tarantool_schema_add_spaces (obj -> schema , resp .data , resp .data_len )) {
662
- fprintf (stderr , "%s" , php_base64_encode (resp .data , resp .data_len )-> val );
663
+ // fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val);
663
664
tarantool_throw_parsingexception ("schema (space)" );
664
665
return FAILURE ;
665
666
}
@@ -719,7 +720,7 @@ int get_indexno_by_name(tarantool_connection *obj, int space_no,
719
720
}
720
721
721
722
if (tarantool_schema_add_indexes (obj -> schema , resp .data , resp .data_len )) {
722
- fprintf (stderr , "%s" , php_base64_encode (resp .data , resp .data_len )-> val );
723
+ // fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val);
723
724
tarantool_throw_parsingexception ("schema (index)" );
724
725
return FAILURE ;
725
726
}
@@ -774,7 +775,7 @@ int get_fieldno_by_name(tarantool_connection *obj, uint32_t space_no,
774
775
}
775
776
776
777
if (tarantool_schema_add_spaces (obj -> schema , resp .data , resp .data_len )) {
777
- fprintf (stderr , "%s" , php_base64_encode (resp .data , resp .data_len )-> val );
778
+ // fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val);
778
779
tarantool_throw_parsingexception ("schema (space)" );
779
780
return FAILURE ;
780
781
}
@@ -1220,15 +1221,15 @@ int __tarantool_authenticate(tarantool_connection *obj) {
1220
1221
if (tarantool_schema_add_spaces (obj -> schema , resp .data ,
1221
1222
resp .data_len ) &&
1222
1223
status != FAILURE ) {
1223
- fprintf (stderr , "%s" , php_base64_encode (resp .data , resp .data_len )-> val );
1224
+ // fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val);
1224
1225
tarantool_throw_parsingexception ("schema (space)" );
1225
1226
status = FAILURE ;
1226
1227
}
1227
1228
} else if (resp .sync == index_sync ) {
1228
1229
if (tarantool_schema_add_indexes (obj -> schema , resp .data ,
1229
1230
resp .data_len ) &&
1230
1231
status != FAILURE ) {
1231
- fprintf (stderr , "%s" , php_base64_encode (resp .data , resp .data_len )-> val );
1232
+ // fprintf(stderr, "%s", php_base64_encode(resp.data, resp.data_len)->val);
1232
1233
tarantool_throw_parsingexception ("schema (index)" );
1233
1234
status = FAILURE ;
1234
1235
}
@@ -1499,13 +1500,13 @@ PHP_METHOD(Tarantool, update) {
1499
1500
size_t before_len = SSTR_LEN (obj -> value );
1500
1501
char * sz = php_tp_encode_update (obj -> value , sync , space_no ,
1501
1502
index_no , & key_new );
1503
+ zval_ptr_dtor (& key_new );
1502
1504
if (tarantool_uwrite_ops (obj , args , space_no ) == -1 ) {
1503
1505
/* rollback all written changes */
1504
1506
SSTR_LEN (obj -> value ) = before_len ;
1505
1507
RETURN_FALSE ;
1506
1508
}
1507
1509
php_tp_reencode_length (obj -> value , sz );
1508
- zval_ptr_dtor (& key_new );
1509
1510
if (tarantool_stream_send (obj ) == FAILURE )
1510
1511
RETURN_FALSE ;
1511
1512
0 commit comments