Guest User

Untitled

a guest
Mar 14th, 2012
38
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. open ext/standard/html.c
  2.  
  3. find:
  4.     /* Default is now UTF-8 */
  5.     if (charset_hint == NULL)
  6.         return cs_utf_8;
  7.  
  8.     if ((len = strlen(charset_hint)) != 0) {
  9.         goto det_charset;
  10.     }
  11.  
  12.     zenc = zend_multibyte_get_internal_encoding(TSRMLS_C);
  13.     if (zenc != NULL) {...}
  14.  
  15.     charset_hint = SG(default_charset);
  16.     if (charset_hint != NULL && (len=strlen(charset_hint)) != 0) {
  17.         goto det_charset;
  18.     }
  19.  
  20. replace to:
  21.     if ((len = strlen(charset_hint)) != 0) {
  22.         goto det_charset;
  23.     }
  24.  
  25.     charset_hint = SG(default_charset);
  26.     if (charset_hint != NULL && (len=strlen(charset_hint)) != 0) {
  27.         if(charset_hint == "utf-8"
  28.             || charset_hint == "UTF-8")
  29.                 return cs_utf_8;
  30.         goto det_charset;
  31.     }
  32.  
  33.     /* Default is now UTF-8 */
  34.     if (charset_hint == NULL)
  35.         return cs_utf_8;
  36.    
  37.     zenc = zend_multibyte_get_internal_encoding(TSRMLS_C);
  38.     if (zenc != NULL) {...}
RAW Paste Data