FreeBSD Bugzilla – Attachment 87312 Details for
Bug 123911
[PATCH] lang/php5: remove putenv() patch for FreeBSD 7+
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
php5-5.2.6_1.patch
php5-5.2.6_1.patch (text/plain), 2.03 KB, created by
Sean Farley
on 2008-05-22 20:40:04 UTC
(
hide
)
Description:
php5-5.2.6_1.patch
Filename:
MIME Type:
Creator:
Sean Farley
Created:
2008-05-22 20:40:04 UTC
Size:
2.03 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/lang/php5.orig/Makefile /usr/ports/lang/php5/Makefile >--- /usr/ports/lang/php5.orig/Makefile 2008-05-14 15:10:30.000000000 -0500 >+++ /usr/ports/lang/php5/Makefile 2008-05-21 21:17:27.000000000 -0500 >@@ -7,7 +7,7 @@ > > PORTNAME= php5 > PORTVERSION= 5.2.6 >-PORTREVISION?= 0 >+PORTREVISION?= 1 > CATEGORIES?= lang devel www > MASTER_SITES= ${MASTER_SITE_PHP} > MASTER_SITE_SUBDIR= distributions >diff -ruN --exclude=CVS /usr/ports/lang/php5.orig/files/patch-ext_standard_basic_functions.c /usr/ports/lang/php5/files/patch-ext_standard_basic_functions.c >--- /usr/ports/lang/php5.orig/files/patch-ext_standard_basic_functions.c 2008-05-03 19:34:20.000000000 -0500 >+++ /usr/ports/lang/php5/files/patch-ext_standard_basic_functions.c 2008-05-21 21:17:00.000000000 -0500 >@@ -1,5 +1,5 @@ >---- ext/standard/basic_functions.c.orig 2008-05-02 08:44:06.000000000 +0200 >-+++ ext/standard/basic_functions.c 2008-05-02 08:54:00.000000000 +0200 >+--- ext/standard/basic_functions.c.orig 2008-05-21 20:47:35.000000000 -0500 >++++ ext/standard/basic_functions.c 2008-05-21 20:52:46.000000000 -0500 > @@ -87,6 +87,7 @@ > # include <sys/loadavg.h> > #endif >@@ -8,26 +8,21 @@ > #ifdef HARTMUT_0 > #include <getopt.h> > #endif >-@@ -3861,9 +3862,7 @@ >+@@ -3861,7 +3862,7 @@ > SetEnvironmentVariable(pe->key, "bugbug"); > #endif > putenv(pe->previous_value); > -# if defined(PHP_WIN32) >++# if defined(PHP_WIN32) || __FreeBSD_version < 700050 > efree(pe->previous_value); >--# endif >+ # endif > } else { >- # if HAVE_UNSETENV >- unsetenv(pe->key); >-@@ -4463,12 +4462,8 @@ >+@@ -4463,7 +4464,7 @@ > pe.previous_value = NULL; > for (env = environ; env != NULL && *env != NULL; env++) { > if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */ > -#if defined(PHP_WIN32) >++#if defined(PHP_WIN32) || __FreeBSD_version < 700050 > /* must copy previous value because MSVCRT's putenv can free the string without notice */ > pe.previous_value = estrdup(*env); >--#else >-- pe.previous_value = *env; >--#endif >- break; >- } >- } >+ #else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 123911
: 87312