cvs: php-src(PHP_4_3) /ext/mnogosearch php_mnogo.c
| From: | Sergey Kartashoff | Date: | Mon, 08 Dec 2003 08:24:56 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/mnogosearch php_mnogo.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-25074@lists.php.net to get a copy of this message | ||
gluke Mon Dec 8 03:24:56 2003 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/mnogosearch php_mnogo.c
Log:
- A bug in Udm_Hash32 function was fixed.
Index: php-src/ext/mnogosearch/php_mnogo.c
diff -u php-src/ext/mnogosearch/php_mnogo.c:1.66.2.10 php-src/ext/mnogosearch/php_mnogo.c:1.66.2.11
--- php-src/ext/mnogosearch/php_mnogo.c:1.66.2.10 Wed Nov 12 02:52:56 2003
+++ php-src/ext/mnogosearch/php_mnogo.c Mon Dec 8 03:24:55 2003
@@ -1,5 +1,5 @@
/* $Source: /repository/php-src/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.66.2.10 2003/11/12 07:52:56 gluke Exp $ */
+/* $Id: php_mnogo.c,v 1.66.2.11 2003/12/08 08:24:55 gluke Exp $ */
/*
+----------------------------------------------------------------------+
@@ -1922,7 +1922,11 @@
str = Z_STRVAL_PP(yystr);
hash32=UdmHash32((str),strlen(str));
+#if UDM_VERSION_ID >= 30215
+ snprintf(buf,sizeof(buf)-1,"%i",hash32);
+#else
snprintf(buf,sizeof(buf)-1,"%u",hash32);
+#endif
RETURN_STRING(buf,1);
}