cvs: ZendEngine2 / zend_constants.c

From: Date: Sun, 01 Jun 2003 16:20:23 +0000
Subject: cvs: ZendEngine2 / zend_constants.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1293@lists.php.net to get a copy of this message
helly Sun Jun 1 12:20:23 2003 EDT Modified files: /ZendEngine2 zend_constants.c Log: Do it correct always Index: ZendEngine2/zend_constants.c diff -u ZendEngine2/zend_constants.c:1.50 ZendEngine2/zend_constants.c:1.51 --- ZendEngine2/zend_constants.c:1.50 Sat May 31 13:24:20 2003 +++ ZendEngine2/zend_constants.c Sun Jun 1 12:20:23 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_constants.c,v 1.50 2003/05/31 17:24:20 helly Exp $ */ +/* $Id: zend_constants.c,v 1.51 2003/06/01 16:20:23 helly Exp $ */ #include "zend.h" #include "zend_constants.h" @@ -244,12 +244,12 @@ printf("Registering constant for module %d\n", c->module_number); #endif - /* keep in mind that c->name_len already contains the '\0' */ - lowercase_name = do_alloca(c->name_len); - if (!(c->flags & CONST_CS)) { + /* keep in mind that c->name_len already contains the '\0' */ + lowercase_name = do_alloca(c->name_len); zend_str_tolower_copy(lowercase_name, c->name, c->name_len - 1); } else { + lowercase_name = do_alloca(c->name_len + 1); memcpy(lowercase_name, c->name, c->name_len); lowercase_name[c->name_len] = '\0'; }

« previous php.zend-engine.cvs (#1293) next »