cvs: ZendEngine2 / zend_constants.c

From: Date: Sun, 15 Jun 2003 14:40:38 +0000
Subject: cvs: ZendEngine2 / zend_constants.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1370@lists.php.net to get a copy of this message
stas Sun Jun 15 10:40:38 2003 EDT Modified files: /ZendEngine2 zend_constants.c Log: set ending \0 for string Index: ZendEngine2/zend_constants.c diff -u ZendEngine2/zend_constants.c:1.54 ZendEngine2/zend_constants.c:1.55 --- ZendEngine2/zend_constants.c:1.54 Sun Jun 15 09:58:50 2003 +++ ZendEngine2/zend_constants.c Sun Jun 15 10:40:38 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_constants.c,v 1.54 2003/06/15 13:58:50 stas Exp $ */ +/* $Id: zend_constants.c,v 1.55 2003/06/15 14:40:38 stas Exp $ */ #include "zend.h" #include "zend_constants.h" @@ -246,7 +246,8 @@ if (zend_hash_find(EG(zend_constants), name, name_len+1, (void **) &c) == FAILURE) { lookup_name = do_alloca(name_len+1); zend_str_tolower_copy(lookup_name, name, name_len); - + lookup_name[name_len] = '\0'; + if (zend_hash_find(EG(zend_constants), lookup_name, name_len+1, (void **) &c)==SUCCESS) { if ((c->flags & CONST_CS) && memcmp(c->name, name, name_len)!=0) { retval=0;

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