Re: cvs: php4 /ext/standard string.c

From: Date: Sun, 29 Apr 2001 07:28:38 +0000
Subject: Re: cvs: php4 /ext/standard string.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5355@lists.php.net to get a copy of this message
Did you notice that in other places it is always if (allow && state == 1)? I'm not sure why because I don't know the code but you should double check with its author because your fix might not be quite right. Andi At 11:07 PM 4/28/2001 +0000, Sean Bright wrote:
elixer          Sat Apr 28 16:07:52 2001 EDT
Modified files:
    /php4/ext/standard  string.c
Log: Fix for bug #10362 Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.194 php4/ext/standard/string.c:1.195
--- php4/ext/standard/string.c:1.194    Fri Apr 13 11:22:13 2001
+++ php4/ext/standard/string.c Sat Apr 28 16:07:51 2001 @@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
*/ -/* $Id: string.c,v 1.194 2001/04/13 18:22:13 thies Exp $ */ +/* $Id: string.c,v 1.195 2001/04/28 23:07:51 elixer Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -2768,6 +2768,8 @@
                                                lc = '(';
                                                br++;
                                        }
+                               } else if (state == 1) {
+                                       *(tp++) = c;
                                } else if (state == 0) {
                                        *(rp++) = c;
                                }
@@ -2779,6 +2781,8 @@
                                                lc = ')';
                                                br--;
                                        }
+                               } else if (state == 1) {
+                                       *(tp++) = c;
                                } else if (state == 0) {
                                        *(rp++) = c;
                                }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net For additional commands, e-mail: php-cvs-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.cvs (#5355) next »