cvs: php4 /ext/mbstring mbstring.c mbstring.h
| From: | Frank M. Kromann | Date: | Wed, 03 Jul 2002 18:23:55 +0000 |
| Subject: | cvs: php4 /ext/mbstring mbstring.c mbstring.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12700@lists.php.net to get a copy of this message | ||
fmk Wed Jul 3 14:23:55 2002 EDT
Modified files:
/php4/ext/mbstring mbstring.c mbstring.h
Log:
Fixing ZTS build
Index: php4/ext/mbstring/mbstring.c
diff -u php4/ext/mbstring/mbstring.c:1.75 php4/ext/mbstring/mbstring.c:1.76
--- php4/ext/mbstring/mbstring.c:1.75 Wed Jul 3 09:36:19 2002
+++ php4/ext/mbstring/mbstring.c Wed Jul 3 14:23:55 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mbstring.c,v 1.75 2002/07/03 13:36:19 hirokawa Exp $ */
+/* $Id: mbstring.c,v 1.76 2002/07/03 18:23:55 fmk Exp $ */
/*
* PHP4 Multibyte String module "mbstring" (currently only for Japanese)
@@ -1327,7 +1327,7 @@
#define IS_SJIS1(c) ((((c)>=0x81 && (c)<=0x9f) || ((c)>=0xe0 &&
(c)<=0xf5)) ? 1 : 0)
#define IS_SJIS2(c) ((((c)>=0x40 && (c)<=0x7e) || ((c)>=0x80 &&
(c)<=0xfc)) ? 1 : 0)
-char *mbstr_strrchr(const char *s, char c){
+char *mbstr_strrchr(const char *s, char c TSRMLS_DC){
unsigned char *p = (unsigned char *)s, *last = NULL;
while(*p++) {
if (*p == c) {
Index: php4/ext/mbstring/mbstring.h
diff -u php4/ext/mbstring/mbstring.h:1.22 php4/ext/mbstring/mbstring.h:1.23
--- php4/ext/mbstring/mbstring.h:1.22 Wed Jul 3 09:36:19 2002
+++ php4/ext/mbstring/mbstring.h Wed Jul 3 14:23:55 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mbstring.h,v 1.22 2002/07/03 13:36:19 hirokawa Exp $ */
+/* $Id: mbstring.h,v 1.23 2002/07/03 18:23:55 fmk Exp $ */
/*
* PHP4 Multibyte String module "mbstring" (currently only for Japanese)
@@ -124,7 +124,7 @@
int php_mbregex_name2mbctype(const char *pname);
#endif
-char *mbstr_strrchr(const char *s, char c);
+char *mbstr_strrchr(const char *s, char c TSRMLS_DC);
ZEND_BEGIN_MODULE_GLOBALS(mbstring)
int language;