pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lang/php5 patch-ak solaris
Hi,
Current php-imap segfaults on solaris because of patch-ak. Solaris
8/9/10 (and probably future releases) libc doesn't like null pointers
so the following lines in patch-ak should be changed from
@@ -3868,6 +3882,7 @@
ret += _php_rfc822_len(tmp->mailbox);
ret += _php_rfc822_len(tmp->host);
num_ent++;
+ printf("%d:%s %s %s
%s\n",num_ent,tmp->personal,tmp->adl,tmp->mailbox,tmp->host);
} while ((tmp = tmp->next));
to something like this:
@@ -3868,6 +3882,7 @@
ret += _php_rfc822_len(tmp->mailbox);
ret += _php_rfc822_len(tmp->host);
num_ent++;
+ printf("%d:%s %s %s %s\n",num_ent,tmp->personal ?
tmp->personal : "(null)",tmp->adl ? tmp->adl : "(null)" ,tmp->mailbox
? tmp->mailbox : "(null)", tmp->host ? tmp->host : "(null)");
} while ((tmp = tmp->next));
Regards,
Andri Piik
Home |
Main Index |
Thread Index |
Old Index