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

From: Date: Mon, 04 Dec 2000 10:35:00 +0000
Subject: Re: cvs: php4 /ext/dba dba.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2922@lists.php.net to get a copy of this message
Hi, > Shoudn't the string be ended with '\0' ?? Yes, in the course of improving that another possible segfault was eliminated. > And should these smart_str_*() funcs be used always instead > of strcat() and friends? Well, as far as I am concerned, I recommened whatever is necessary to write flexible and save code. If the smart_str family of functions does that in your case, using them is certainly right. > There seems to be strcat() used also in ext/db/db.c for same > purpose. Shouldn't it be 'smart_str'ed' too? ext/db/* is dead. It provides a subset of functionality of dba (excluding flatfile and NFS hack). IMO it should be marked as deprecated and be removed down the road. - Sascha

« previous php.cvs (#2922) next »