@@ -815,7 +815,7 @@ static int append_key_value(smart_str* loc_name, HashTable* hash_arr, const char
815815 /* not lang or grandfathered tag */
816816 smart_str_appendl (loc_name, SEPARATOR , sizeof (SEPARATOR)-1 );
817817 }
818- smart_str_appendl (loc_name, Z_STRVAL_P (ele_value) , Z_STRLEN_P (ele_value));
818+ smart_str_append (loc_name, Z_STR_P (ele_value));
819819 return SUCCESS;
820820 }
821821
@@ -853,7 +853,7 @@ static int append_multiple_key_values(smart_str* loc_name, HashTable* hash_arr,
853853 add_prefix ( loc_name , key_name);
854854
855855 smart_str_appendl (loc_name, SEPARATOR , sizeof (SEPARATOR)-1 );
856- smart_str_appendl (loc_name, Z_STRVAL_P (ele_value) , Z_STRLEN_P (ele_value));
856+ smart_str_append (loc_name, Z_STR_P (ele_value));
857857 return SUCCESS;
858858 } else if (Z_TYPE_P (ele_value) == IS_ARRAY ) {
859859 HashTable *arr = Z_ARRVAL_P (ele_value);
@@ -868,7 +868,7 @@ static int append_multiple_key_values(smart_str* loc_name, HashTable* hash_arr,
868868 add_prefix (loc_name , key_name);
869869 }
870870 smart_str_appendl (loc_name, SEPARATOR , sizeof (SEPARATOR)-1 );
871- smart_str_appendl (loc_name, Z_STRVAL_P (data) , Z_STRLEN_P (data));
871+ smart_str_append (loc_name, Z_STR_P (data));
872872 } ZEND_HASH_FOREACH_END ();
873873 return SUCCESS;
874874 } else {
@@ -902,7 +902,7 @@ static int append_multiple_key_values(smart_str* loc_name, HashTable* hash_arr,
902902 add_prefix (loc_name , cur_key_name);
903903 }
904904 smart_str_appendl (loc_name, SEPARATOR , sizeof (SEPARATOR)-1 );
905- smart_str_appendl (loc_name, Z_STRVAL_P (ele_value) , Z_STRLEN_P (ele_value));
905+ smart_str_append (loc_name, Z_STR_P (ele_value));
906906 }
907907 } /* end of for */
908908 } /* end of else */
0 commit comments