@@ -238,7 +238,7 @@ PHP_FUNCTION(blenc_encrypt) {
238
238
239
239
memset (main_hash , '\0' , sizeof (main_hash ));
240
240
241
- php_blenc_make_md5 (main_hash , main_key , strlen (main_key ));
241
+ php_blenc_make_md5 (main_hash , main_key , strlen (main_key ) TSRMLS_CC );
242
242
243
243
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "ss|s" , & data , & data_len ,
244
244
& output_file , & output_file_len ,
@@ -252,7 +252,7 @@ PHP_FUNCTION(blenc_encrypt) {
252
252
dup_key = TRUE;
253
253
}
254
254
255
- php_blenc_make_md5 ((char * )& header .md5 , data , data_len );
255
+ php_blenc_make_md5 ((char * )& header .md5 , data , data_len TSRMLS_CC );
256
256
257
257
retval = php_blenc_encode (data , key , data_len , & output_len TSRMLS_CC );
258
258
@@ -323,7 +323,7 @@ static int php_blenc_load_keyhash(TSRMLS_D)
323
323
keys = php_blenc_file_to_mem (BL_G (key_file ) TSRMLS_CC );
324
324
325
325
memset (main_hash , '\0' , sizeof (main_hash ));
326
- php_blenc_make_md5 (main_hash , main_key , strlen (main_key ));
326
+ php_blenc_make_md5 (main_hash , main_key , strlen (main_key ) TSRMLS_CC );
327
327
328
328
if (keys ) {
329
329
char * t = keys ;
@@ -337,7 +337,7 @@ static int php_blenc_load_keyhash(TSRMLS_D)
337
337
}
338
338
339
339
bfdata = php_base64_decode (key , strlen (key ), & bfdata_len );
340
- buff = php_blenc_decode (bfdata , main_hash , bfdata_len , & buff_len );
340
+ buff = php_blenc_decode (bfdata , main_hash , bfdata_len , & buff_len TSRMLS_CC );
341
341
342
342
temp = pestrdup (buff , TRUE);
343
343
if (zend_hash_next_index_insert (php_bl_keys , & temp , sizeof (char * ), NULL ) == FAILURE ) {
@@ -591,10 +591,10 @@ zend_op_array *blenc_compile(zend_file_handle *file_handle, int type TSRMLS_DC)
591
591
zend_hash_get_current_data (php_bl_keys , (void * * )& key ) == SUCCESS ;
592
592
zend_hash_move_forward (php_bl_keys )) {
593
593
594
- decoded = php_blenc_decode (encoded , * key , script_len - sizeof (blenc_header ), & decoded_len );
594
+ decoded = php_blenc_decode (encoded , * key , script_len - sizeof (blenc_header ), & decoded_len TSRMLS_CC );
595
595
596
596
md5 = emalloc (33 );
597
- php_blenc_make_md5 (md5 , decoded , decoded_len );
597
+ php_blenc_make_md5 (md5 , decoded , decoded_len TSRMLS_CC );
598
598
599
599
if (!strncmp (md5 , header -> md5 , 32 )) {
600
600
0 commit comments