]> granicus.if.org Git - php/commitdiff
Missing file relating to previous commit
authorIlia Alshanetsky <iliaa@php.net>
Thu, 11 Aug 2011 13:02:16 +0000 (13:02 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 11 Aug 2011 13:02:16 +0000 (13:02 +0000)
ext/standard/url.c

index e516f15982186897ee7b2a34cba7dee9962369ec..0a1903a22deda10600438e77637b73068c884aa6 100644 (file)
@@ -197,6 +197,10 @@ PHPAPI php_url *php_url_parse_ex(char const *str, int length)
                                efree(ret);
                                return NULL;
                        }
+               } else if (p == pp && *pp == '\0') {
+                       STR_FREE(ret->scheme);
+                       efree(ret);
+                       return NULL;
                } else {
                        goto just_path;
                }