[PHP4BETA] CVS update: php4/ext/standard
| From: | rasmus | Date: | Wed, 12 May 1999 12:43:03 +0000 |
| Subject: | [PHP4BETA] CVS update: php4/ext/standard | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-782@lists.php.net to get a copy of this message | ||
Date: Wednesday May 12, 1999 @ 8:43
Author: rasmus
Update of /repository/php4/ext/standard
In directory php:/tmp/cvs-serv4477/ext/standard
Modified Files:
string.c
Log Message:
substr() fix for PHP4 as well
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.9 php4/ext/standard/string.c:1.10
--- php4/ext/standard/string.c:1.9 Tue May 11 12:52:58 1999
+++ php4/ext/standard/string.c Wed May 12 08:43:03 1999
@@ -30,7 +30,7 @@
*/
-/* $Id: string.c,v 1.9 1999/05/11 16:52:58 zeev Exp $ */
+/* $Id: string.c,v 1.10 1999/05/12 12:43:03 rasmus Exp $ */
#include <stdio.h>
#include "php.h"
@@ -829,7 +829,7 @@
if ((f + l) < (int)string->value.str.len) {
string->value.str.val[f + l] = '\0';
}
- RETVAL_STRING(string->value.str.val + f,1);
+ RETVAL_STRINGL(string->value.str.val + f, l, 1);
}
/* }}} */
--
PHP 4 Beta