@@ -828,15 +828,15 @@ void xml_characterDataHandler(void *userData, const XML_Char *s, int len)
828828 zval * myval ;
829829 /* check if the current tag already has a value - if yes append to that! */
830830 if ((myval = zend_hash_find (Z_ARRVAL_P (ctag ), ZSTR_KNOWN (ZEND_STR_VALUE ))) && Z_TYPE_P (myval ) == IS_STRING ) {
831- Z_STR_P (myval ) = zend_string_safe_realloc (Z_STR_P (myval ), 1 , Z_STRLEN_P (myval ), ZSTR_LEN (decoded_value ), 0 );
831+ Z_STR_P (myval ) = zend_string_safe_realloc (Z_STR_P (myval ), 1 , Z_STRLEN_P (myval ), ZSTR_LEN (decoded_value ), false );
832832 strncpy (Z_STRVAL_P (myval ) + Z_STRLEN_P (myval ) - ZSTR_LEN (decoded_value ),
833833 ZSTR_VAL (decoded_value ), ZSTR_LEN (decoded_value ) + 1 );
834- zend_string_release_ex (decoded_value , 0 );
834+ zend_string_release_ex (decoded_value , false );
835835 } else {
836836 if (doprint || (! parser -> skipwhite )) {
837837 add_assoc_str (ctag , "value" , decoded_value );
838838 } else {
839- zend_string_release_ex (decoded_value , 0 );
839+ zend_string_release_ex (decoded_value , false );
840840 }
841841 }
842842 } else {
@@ -854,10 +854,10 @@ void xml_characterDataHandler(void *userData, const XML_Char *s, int len)
854854 if (EXPECTED (Z_TYPE_P (mytype ) == IS_STRING ) && zend_string_equals_literal (Z_STR_P (mytype ), "cdata" )) {
855855 SEPARATE_ARRAY (curtag );
856856 if ((myval = zend_hash_find (Z_ARRVAL_P (curtag ), ZSTR_KNOWN (ZEND_STR_VALUE )))) {
857- Z_STR_P (myval ) = zend_string_safe_realloc (Z_STR_P (myval ), 1 , Z_STRLEN_P (myval ), ZSTR_LEN (decoded_value ), 0 );
857+ Z_STR_P (myval ) = zend_string_safe_realloc (Z_STR_P (myval ), 1 , Z_STRLEN_P (myval ), ZSTR_LEN (decoded_value ), false );
858858 strncpy (Z_STRVAL_P (myval ) + Z_STRLEN_P (myval ) - ZSTR_LEN (decoded_value ),
859859 ZSTR_VAL (decoded_value ), ZSTR_LEN (decoded_value ) + 1 );
860- zend_string_release_ex (decoded_value , 0 );
860+ zend_string_release_ex (decoded_value , false );
861861 return ;
862862 }
863863 }
@@ -875,7 +875,7 @@ void xml_characterDataHandler(void *userData, const XML_Char *s, int len)
875875 } else if (parser -> level == (XML_MAXLEVEL + 1 )) {
876876 php_error_docref (NULL , E_WARNING , "Maximum depth exceeded - Results truncated" );
877877 } else {
878- zend_string_release_ex (decoded_value , 0 );
878+ zend_string_release_ex (decoded_value , false );
879879 }
880880 }
881881}
0 commit comments