Re: cvs: php4 /ext/dba dba.c

From: Date: Sun, 03 Dec 2000 16:04:53 +0000
Subject: Re: cvs: php4 /ext/dba dba.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2880@lists.php.net to get a copy of this message
They work nicely in such situations too and speed is not important in MINFO(). Andi At 13:25 01/12/00 +0100, Sascha Schumann wrote:
On Fri, 1 Dec 2000, Andi Gutmans wrote: Try the following and commit if it's OK. static PHP_MINFO_FUNCTION(dba) {
         dba_handler *hptr;
         static char handlers[80];
         handlers[0] = '\0';
         for(hptr = handler; hptr->name; hptr++) {
                 strlcat(handlers, hptr->name, sizeof(handlers));
    Hm, strlcat/strlcpy were invented by OpenBSD to fix broken
    code quickly (instead of rewriting it). I'll fix this code
    later.
    - Sascha
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.cvs (#2880) next »