CVS update: php4/ext/standard
| From: | zeev | Date: | Mon, 07 Jun 1999 15:01:25 +0000 |
| Subject: | CVS update: php4/ext/standard | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-1368@lists.php.net to get a copy of this message | ||
Date: Monday June 7, 1999 @ 11:01
Author: zeev
Update of /repository/php4/ext/standard
In directory php:/tmp/cvs-serv21512/ext/standard
Modified Files:
reg.c
Log Message:
Fix an ereg_replace() crash bug
Index: php4/ext/standard/reg.c
diff -u php4/ext/standard/reg.c:1.12 php4/ext/standard/reg.c:1.13
--- php4/ext/standard/reg.c:1.12 Sat Jun 5 16:43:36 1999
+++ php4/ext/standard/reg.c Mon Jun 7 11:01:25 1999
@@ -28,7 +28,7 @@
| Jaakko Hyvätti <jaakko@hyvatti.iki.fi> |
+----------------------------------------------------------------------+
*/
-/* $Id: reg.c,v 1.12 1999/06/05 20:43:36 andrey Exp $ */
+/* $Id: reg.c,v 1.13 1999/06/07 15:01:25 zeev Exp $ */
#include <stdio.h>
#include "php.h"
@@ -319,7 +319,7 @@
string_len = strlen(string);
if (!string_len)
- return (char *)string;
+ return estrndup("", 0);
if (icase)
copts = REG_ICASE;