CVS update: php3/functions

From: Date: Thu, 27 May 1999 15:56:02 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-6090@lists.php.net to get a copy of this message
Date: Thursday May 27, 1999 @ 11:56 Author: andrey Update of /repository/php3/functions In directory php:/tmp/cvs-serv4888/functions Modified Files: pcre.c Log Message: Get preg_match_all working nicely. Index: php3/functions/pcre.c diff -u php3/functions/pcre.c:1.1 php3/functions/pcre.c:1.2 --- php3/functions/pcre.c:1.1 Thu May 27 11:42:52 1999 +++ php3/functions/pcre.c Thu May 27 11:56:02 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pcre.c,v 1.1 1999/05/27 15:42:52 andrey Exp $ */ +/* $Id: pcre.c,v 1.2 1999/05/27 15:56:02 andrey Exp $ */ #include "php.h" @@ -387,8 +387,8 @@ add_next_index_string(result_set, (char *)stringlist[i], 1); } /* And add it to the output array */ - _php3_hash_next_index_insert(subpats->value.ht, &result_set, - sizeof(pval *), NULL); + _php3_hash_next_index_insert(subpats->value.ht, result_set, + sizeof(pval), NULL); } } else { /* single pattern matching */ @@ -413,7 +413,7 @@ /* Add the match sets to the output array and clean up */ if (global && subpats_order_val == PREG_PATTERN_ORDER) { for (i=0; i<num_subpats; i++) { - _php3_hash_next_index_insert(subpats->value.ht, &match_sets[i], sizeof(pval *), NULL); + _php3_hash_next_index_insert(subpats->value.ht, match_sets[i], sizeof(pval), NULL); } efree(match_sets); } -- 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

« previous php.dev (#6090) next »