[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] =?utf-8?q?svn:_/pecl/apc/trunk/_apc.c?=
From:       Anatoliy_Belsky <ab () php ! net>
Date:       2012-12-31 18:38:36
Message-ID: svn-ab-1356979116-328940-2019848714 () svn ! php ! net
[Download RAW message or body]

ab                                       Mon, 31 Dec 2012 18:38:36 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=328940

Log:
reverted the revision 328880 as the arKey has to be a
\0 terminated string

Changed paths:
    U   pecl/apc/trunk/apc.c

Modified: pecl/apc/trunk/apc.c
===================================================================
--- pecl/apc/trunk/apc.c	2012-12-31 13:53:22 UTC (rev 328939)
+++ pecl/apc/trunk/apc.c	2012-12-31 18:38:36 UTC (rev 328940)
@@ -340,9 +340,12 @@
         }

         if ((*p == ':') && (n > 1) && (!strncmp("//", p+1, 2) || (n == 4 && \
                !memcmp("data:", path, 5)))) {
-            if (!zend_hash_exists(php_stream_get_url_stream_wrappers_hash(), \
filename, n + 1)) { +            char *tmp = estrndup(filename, n);
+
+            if (!zend_hash_exists(php_stream_get_url_stream_wrappers_hash(), tmp, n \
+ 1)) {  return -1;
             }
+            efree(tmp);
         }
     }



-- 
PECL CVS Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic