CVS update: php3/functions
| From: | fmk | Date: | Wed, 06 Jan 1999 07:19:06 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3323@lists.php.net to get a copy of this message | ||
Date: Wednesday January 6, 1999 @ 2:19
Author: fmk
Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv10325
Modified Files:
reg.h html.c
Log Message:
Removing "old" function and hedder comments
Index: php3/functions/reg.h
diff -c php3/functions/reg.h:1.16 php3/functions/reg.h:1.17
*** php3/functions/reg.h:1.16 Tue Jan 5 04:18:49 1999
--- php3/functions/reg.h Wed Jan 6 02:19:06 1999
***************
*** 28,34 ****
*/
! /* $Id: reg.h,v 1.16 1999/01/05 09:18:49 martin Exp $ */
#ifndef _REG_H
#define _REG_H
--- 28,34 ----
*/
! /* $Id: reg.h,v 1.17 1999/01/06 07:19:06 fmk Exp $ */
#ifndef _REG_H
#define _REG_H
***************
*** 36,45 ****
extern php3_module_entry regexp_module_entry;
#define regexp_module_ptr ®exp_module_entry
! /*#define _php3_regreplace(a,b,c,d,e) \
! __php3_regreplace(INTERNAL_FUNCTION_PARAM_PASSTHRU,a,b,c,d,e)*/
!
! extern char *__php3_regreplace(INTERNAL_FUNCTION_PARAMETERS,const char *pattern, const char
*replace, const char *string, int icase, int extended);
extern void php3_ereg(INTERNAL_FUNCTION_PARAMETERS);
extern void php3_eregi(INTERNAL_FUNCTION_PARAMETERS);
--- 36,43 ----
extern php3_module_entry regexp_module_entry;
#define regexp_module_ptr ®exp_module_entry
! extern PHPAPI char * _php3_regreplace(const char *pattern,
! const char *replace, const char *string, int icase, int extended);
extern void php3_ereg(INTERNAL_FUNCTION_PARAMETERS);
extern void php3_eregi(INTERNAL_FUNCTION_PARAMETERS);
Index: php3/functions/html.c
diff -c php3/functions/html.c:1.28 php3/functions/html.c:1.29
*** php3/functions/html.c:1.28 Tue Jan 5 05:08:32 1999
--- php3/functions/html.c Wed Jan 6 02:19:06 1999
***************
*** 28,34 ****
+----------------------------------------------------------------------+
*/
! /* $Id: html.c,v 1.28 1999/01/05 10:08:32 martin Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
--- 28,34 ----
+----------------------------------------------------------------------+
*/
! /* $Id: html.c,v 1.29 1999/01/06 07:19:06 fmk Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
***************
*** 121,180 ****
RETVAL_STRINGL(new,strlen(new),1);
efree(new);
}
- /*
- static void _php3_htmlentities(INTERNAL_FUNCTION_PARAMETERS, int all)
- {
- pval *arg;
- int i, len, maxlen;
- unsigned char *old;
- char *new;
- TLS_VARS;
-
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &arg) == FAILURE) {
- WRONG_PARAM_COUNT;
- }
-
- convert_to_string(arg);
-
- maxlen = 2 * arg->value.str.len;
- if (maxlen < 128)
- maxlen = 128;
- new = emalloc (maxlen);
- len = 0;
-
- old = (unsigned char *)arg->value.str.val;
- i = arg->value.str.len;
- while (i--) {
- if (len + 9 > maxlen)
- new = erealloc (new, maxlen += 128);
- if (38 == *old) {
- memcpy (new + len, "&", 5);
- len += 5;
- } else if (34 == *old) {
- memcpy (new + len, """, 6);
- len += 6;
- } else if (60 == *old) {
- memcpy (new + len, "<", 4);
- len += 4;
- } else if (62 == *old) {
- memcpy (new + len, ">", 4);
- len += 4;
- } else if (all && 160 <= *old) {
- new [len++] = '&';
- strcpy (new + len, EntTable [*old - 160]);
- len += strlen (EntTable [*old - 160]);
- new [len++] = ';';
- } else {
- new [len++] = *old;
- }
- old++;
- }
- new [len] = '\0';
-
- RETVAL_STRINGL(new,len,1);
- efree(new);
- }
- */
/* {{{ proto string htmlspecialchars(string string)
Convert special characters to HTML entities */
--- 121,126 ----
--
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