# Patch for bug report #35243

- Thread: https://externals.io/message/20164
- Original archive: https://news-web.php.net/php.internals/20164
- Started by David on 2005-11-18T16:02:04+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #20164 — David — 2005-11-18T16:02:04+00:00

URL: https://externals.io/message/20164#20164

I've recently opened a bug report #35243, and was requested to send the patch in unified diff format to this list. Here it is, as requested, both  in plaintext, and uuencoded (in case the mailer really messes things up).

I'd appreciate any feedback, as this is my first time posting a patch.

Thanks,

David Oren

uuencoded:

begin 666 patch-35243.diff
M+2TM("XO97AT+W-T86YD87)D+V)A<VEC7V9U;F-T:6]N<RYC("`@(#(P,#4M
M,3$M,38@,3$Z,S0Z,C0N,#`P,#`P,#`P("LP,C`P#0HK*RL@+BXO<&AP-2TR
M,#`U,3$Q-S`S,S`M<&%T8VAE9"]E>'0O<W1A;F1A<F0O8F%S:6-?9G5N8W1I
M;VYS+F,@,C`P-2TQ,2TQ-R`P.#HP-3HR,2XP,#`P,#`P,#`@*S`R,#`-"D!`
M("TY-30L-B`K.34T+#$P($!`#0H@("`@("`@(&UE;7-E="@F0D<H=7)L7V%D
M87!T7W-T871E*2P@,"P@<VEZ96]F*$)'*'5R;%]A9&%P=%]S=&%T92DI*3L-
M"B`@("`@("`@;65M<V5T*"9"1RAU<FQ?861A<'1?<W1A=&5?97@I+"`P+"!S
M:7IE;V8H0D<H=7)L7V%D87!T7W-T871E7V5X*2DI.PT*("`-"BLC:68@9&5F
M:6YE9"A?4D5%3E1204Y4*2`F)B!D969I;F5D*$A!5D5?34)23$5.*2`F)B!D
M969I;F5D*$A!5D5?34)35$%415]4*0T**R`@("`@("!M96US970H)D)'*&UB
M;&5N7W-T871E*2P@,"P@<VEZ96]F*$)'*&UB;&5N7W-T871E*2DI.PT**R-E
M;F1I9@T**PT*("`@("`@("!"1RAI;F-O;7!L971E7V-L87-S*2`]('!H<%]C
G<F5A=&5?:6YC;VUP;&5T95]C;&%S<RA44U)-3%-?0RD[#0H@?0T*
`
end


plaintext:

--- ./ext/standard/basic_functions.c    2005-11-16 11:34:24.000000000 +0200
+++ ../php5-200511170330-patched/ext/standard/basic_functions.c 2005-11-17 08:05:21.000000000 +0200
@@ -954,6 +954,10 @@
        memset(&BG(url_adapt_state), 0, sizeof(BG(url_adapt_state)));
        memset(&BG(url_adapt_state_ex), 0, sizeof(BG(url_adapt_state_ex)));
  
+#if defined(_REENTRANT) && defined(HAVE_MBRLEN) && defined(HAVE_MBSTATE_T)
+       memset(&BG(mblen_state), 0, sizeof(BG(mblen_state)));
+#endif
+
        BG(incomplete_class) = php_create_incomplete_class(TSRMLS_C);
 }




_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

---

## #20165 — Wez Furlong — 2005-11-18T16:25:34+00:00

URL: https://externals.io/message/20164#20165 · In reply to: #20164

Please send patches as plain text MIME attachments, and ideally
include a URL where it can be downloaded as well.

--Wez.


>
> I've recently opened a bug report #35243, and was requested to send the patch in unified diff format to this list. Here it is, as requested, both  in plaintext, and uuencoded (in case the mailer really messes things up).
>
>
>
> I'd appreciate any feedback, as this is my first time posting a patch.
>
>
>
> Thanks,
>
>
>
> David Oren
>
>
>
> uuencoded:
>
>
>
> begin 666 patch-35243.diff
>
> M+2TM("XO97AT+W-T86YD87)D+V)A<VEC7V9U;F-T:6]N<RYC("`@(#(P,#4M
>
> M,3$M,38@,3$Z,S0Z,C0N,#`P,#`P,#`P("LP,C`P#0HK*RL@+BXO<&AP-2TR
>
> M,#`U,3$Q-S`S,S`M<&%T8VAE9"]E>'0O<W1A;F1A<F0O8F%S:6-?9G5N8W1I
>
> M;VYS+F,@,C`P-2TQ,2TQ-R`P.#HP-3HR,2XP,#`P,#`P,#`@*S`R,#`-"D!`
>
> M("TY-30L-B`K.34T+#$P($!`#0H@("`@("`@(&UE;7-E="@F0D<H=7)L7V%D
>
> M87!T7W-T871E*2P@,"P@<VEZ96]F*$)'*'5R;%]A9&%P=%]S=&%T92DI*3L-
>
> M"B`@("`@("`@;65M<V5T*"9"1RAU<FQ?861A<'1?<W1A=&5?97@I+"`P+"!S
>
> M:7IE;V8H0D<H=7)L7V%D87!T7W-T871E7V5X*2DI.PT*("`-"BLC:68@9&5F
>
> M:6YE9"A?4D5%3E1204Y4*2`F)B!D969I;F5D*$A!5D5?34)23$5.*2`F)B!D
>
> M969I;F5D*$A!5D5?34)35$%415]4*0T**R`@("`@("!M96US970H)D)'*&UB
>
> M;&5N7W-T871E*2P@,"P@<VEZ96]F*$)'*&UB;&5N7W-T871E*2DI.PT**R-E
>
> M;F1I9@T**PT*("`@("`@("!"1RAI;F-O;7!L971E7V-L87-S*2`]('!H<%]C
>
> G<F5A=&5?:6YC;VUP;&5T95]C;&%S<RA44U)-3%-?0RD[#0H@?0T*
>
> `
>
> end
>
>
>
>
>
> plaintext:
>
>
>
> --- ./ext/standard/basic_functions.c    2005-11-16 11:34:24.000000000 +0200
>
> +++ ../php5-200511170330-patched/ext/standard/basic_functions.c 2005-11-17 08:05:21.000000000 +0200
>
> @@ -954,6 +954,10 @@
>
>         memset(&BG(url_adapt_state), 0, sizeof(BG(url_adapt_state)));
>
>         memset(&BG(url_adapt_state_ex), 0, sizeof(BG(url_adapt_state_ex)));
>
>
>
> +#if defined(_REENTRANT) && defined(HAVE_MBRLEN) && defined(HAVE_MBSTATE_T)
>
> +       memset(&BG(mblen_state), 0, sizeof(BG(mblen_state)));
>
> +#endif
>
> +
>
>         BG(incomplete_class) = php_create_incomplete_class(TSRMLS_C);
>
>  }
>
>
>
>
>
>
>
> _______________________________________________
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
