diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2009-03-24 17:02:45 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2009-03-24 17:02:45 +0000 |
commit | a85d0d86589932ed726ee4cc1d5c484e63d3a976 (patch) | |
tree | 608e889b937f3b9cf5390efe328b9466c532e618 /databases/php4-dba | |
parent | 69d69ada8fc357538b0673d3227edf801c19a38d (diff) | |
download | ports-a85d0d86589932ed726ee4cc1d5c484e63d3a976.tar.gz ports-a85d0d86589932ed726ee4cc1d5c484e63d3a976.zip |
Notes
Diffstat (limited to 'databases/php4-dba')
-rw-r--r-- | databases/php4-dba/Makefile | 1 | ||||
-rw-r--r-- | databases/php4-dba/files/patch-fix-dba_replace-truncation | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/databases/php4-dba/Makefile b/databases/php4-dba/Makefile index abf53b08e91c..e093509420c8 100644 --- a/databases/php4-dba/Makefile +++ b/databases/php4-dba/Makefile @@ -6,6 +6,7 @@ # CATEGORIES= databases +PORTREVISION= 1 MASTERDIR= ${.CURDIR}/../../lang/php4 diff --git a/databases/php4-dba/files/patch-fix-dba_replace-truncation b/databases/php4-dba/files/patch-fix-dba_replace-truncation new file mode 100644 index 000000000000..0f6dab4e5da7 --- /dev/null +++ b/databases/php4-dba/files/patch-fix-dba_replace-truncation @@ -0,0 +1,17 @@ +Patch that fixes dba_replace() file truncation issue + +Adopted from: http://cvs.php.net/viewvc.cgi/php-src/ext/dba/libinifile/inifile.c?r1=1.14.2.1.2.5&r2=1.14.2.1.2.4&view=patch + +--- libinifile/inifile.c 2007/12/31 07:20:05 1.14.2.1.2.4 ++++ libinifile/inifile.c 2008/11/13 18:22:23 1.14.2.1.2.5 +@@ -508,7 +508,9 @@ + + /* 5 */ + if (ret == SUCCESS) { +- ret = inifile_truncate(dba, append ? pos_grp_next : pos_grp_start TSRMLS_CC); /* writes error on fail */ ++ if (!value || (key->name && strlen(key->name))) { ++ ret = inifile_truncate(dba, append ? pos_grp_next : pos_grp_start TSRMLS_CC); /* writes error on fail */ ++ } + } + + if (ret == SUCCESS) { |