CVS update: php31/ext/standard
| From: | zeev | Date: | Sun, 23 Aug 1998 21:05:19 +0000 |
| Subject: | CVS update: php31/ext/standard | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-540@lists.php.net to get a copy of this message | ||
Date: Sunday August 23, 1998 @ 17:05
Author: zeev
Update of /repository/php31/ext/standard
In directory asf:/tmp/cvs-serv14169/ext/standard
Modified Files:
reg.c
Log Message:
Import a 3.0 patch
Index: php31/ext/standard/reg.c
diff -c php31/ext/standard/reg.c:2.0 php31/ext/standard/reg.c:2.1
*** php31/ext/standard/reg.c:2.0 Fri Jul 3 09:14:37 1998
--- php31/ext/standard/reg.c Sun Aug 23 17:05:19 1998
***************
*** 28,34 ****
| Jaakko Hyvätti <jaakko@hyvatti.iki.fi> |
+----------------------------------------------------------------------+
*/
! /* $Id: reg.c,v 2.0 1998/07/03 13:14:37 rasmus Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
--- 28,34 ----
| Jaakko Hyvätti <jaakko@hyvatti.iki.fi> |
+----------------------------------------------------------------------+
*/
! /* $Id: reg.c,v 2.1 1998/08/23 21:05:19 zeev Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
***************
*** 188,194 ****
if (start != -1 && end > 0 && start < string_len && end <
string_len && start < end) {
strncpy(buf, &string[start], end - start);
entry.value.str.len = end - start;
! entry.value.str.val = estrdup(buf);
entry.type = IS_STRING;
} else {
var_reset(&entry);
--- 188,194 ----
if (start != -1 && end > 0 && start < string_len && end <
string_len && start < end) {
strncpy(buf, &string[start], end - start);
entry.value.str.len = end - start;
! entry.value.str.val = estrndup(buf, entry.value.str.len);
entry.type = IS_STRING;
} else {
var_reset(&entry);
--
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