Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3584 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65984 invoked from network); 23 Jul 2003 21:46:03 -0000 Received: from unknown (HELO mta3-svc.business.ntl.com) (62.253.164.43) by pb1.pair.com with SMTP; 23 Jul 2003 21:46:03 -0000 Received: from p2q4w7 ([80.1.19.57]) by mta3-svc.business.ntl.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with SMTP id <20030723214602.VITT5914.mta3-svc.business.ntl.com@p2q4w7> for ; Wed, 23 Jul 2003 22:46:02 +0100 Message-ID: <006d01c3516c$8e5d41a0$461b0150@p2q4w7> Reply-To: "Steph" To: Date: Wed, 23 Jul 2003 22:48:36 -0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_006A_01C3516C.8D830E40" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Subject: Fw: [PHP-DEV] small patch (fixes #19613) From: steph@php.net ("Steph") ------=_NextPart_000_006A_01C3516C.8D830E40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit and yeah I do take advice. (Wrongly? Rightly?) ------=_NextPart_000_006A_01C3516C.8D830E40 Content-Type: text/plain; name="basicfunctions.diff.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="basicfunctions.diff.txt" --- current_basic_functions.c 2003-07-23 22:18:26.000000000 +0000=0A= +++ basic_functions.c 2003-07-23 22:45:34.000000000 +0000=0A= @@ -1335,14 +1335,19 @@=0A= convert_to_string_ex(str);=0A= =0A= if (Z_STRVAL_PP(str) && *(Z_STRVAL_PP(str))) {=0A= - char *p, **env;=0A= + #ifndef PHP_WIN32=0A= + char *p;=0A= + #endif=0A= + char **env;=0A= putenv_entry pe;=0A= =0A= pe.putenv_string =3D estrndup(Z_STRVAL_PP(str), Z_STRLEN_PP(str));=0A= pe.key =3D estrndup(Z_STRVAL_PP(str), Z_STRLEN_PP(str));=0A= + #ifndef PHP_WIN32=0A= if ((p =3D strchr(pe.key, '=3D'))) { /* nullify the '=3D' if there is = one */=0A= *p =3D '\0';=0A= }=0A= + #endif=0A= pe.key_len =3D strlen(pe.key);=0A= =0A= if (PG(safe_mode)) {=0A= ------=_NextPart_000_006A_01C3516C.8D830E40--