CVS update: php3/functions
| From: | sas | Date: | Mon, 17 May 1999 17:19:00 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5743@lists.php.net to get a copy of this message | ||
Date: Monday May 17, 1999 @ 13:19
Author: sas
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv12452
Modified Files:
dba.c
Log Message:
- don't access args after its freed
Index: php3/functions/dba.c
diff -u php3/functions/dba.c:1.15 php3/functions/dba.c:1.16
--- php3/functions/dba.c:1.15 Mon May 10 16:50:19 1999
+++ php3/functions/dba.c Mon May 17 13:19:00 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba.c,v 1.15 1999/05/10 20:50:19 sas Exp $ */
+/* $Id: dba.c,v 1.16 1999/05/17 17:19:00 sas Exp $ */
#include "php.h"
@@ -197,7 +197,7 @@
{
dba_handler *hptr;
- PUTS("V1 ($Id: dba.c,v 1.15 1999/05/10 20:50:19 sas Exp $)");
+ PUTS("V1 ($Id: dba.c,v 1.16 1999/05/17 17:19:00 sas Exp $)");
for(hptr = handler; hptr->name; hptr++) {
PUTS(" ");
PUTS(hptr->name);
@@ -278,8 +278,8 @@
strcasecmp(hptr->name, args[2]->value.str.val); hptr++);
if(!hptr->name) {
- FREENOW;
php3_error(E_WARNING, "no such handler: %s", args[2]->value.str.val);
+ FREENOW;
RETURN_FALSE;
}
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net