Re: [PHP4BETA] cvs: /php4/ext/standard url.c
| From: | Thies C. Arntzen | Date: | Wed, 29 Sep 1999 10:04:18 +0000 |
| Subject: | Re: [PHP4BETA] cvs: /php4/ext/standard url.c | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5004@lists.php.net to get a copy of this message | ||
hi andrei,
your fix to url.c broks something else - yould you please check again (would do myself - but got no
time).
thanx,
tc
script:
=======
<?
$data = parse_url("file:/dot/dc4/www/dcl.php3");
var_dump($data);
?>
php4:
=====
bool(false);
php3:
=====
array(2) {
string(6) "scheme"
string(4) "file"
string(4) "path"
string(21) "/dot/dc4/www/dcl.php3"
}
On Mon, 27 Sep 1999, Andrei Zmievski wrote:
> andrey Mon Sep 27 11:17:28 1999 EDT
>
> Modified files:
> /php4/ext/standard url.c
> Log:
> Fix for bug #2199. Redirect was returning http:// which
> resulted in a crash.
>
>
> Index: php4/ext/standard/url.c
> diff -u php4/ext/standard/url.c:1.9 php4/ext/standard/url.c:1.10
> --- php4/ext/standard/url.c:1.9 Fri Sep 24 15:35:25 1999
> +++ php4/ext/standard/url.c Mon Sep 27 11:17:28 1999
> @@ -15,7 +15,7 @@
> | Author: Jim Winstead (jimw@php.net) |
> +----------------------------------------------------------------------+
> */
> -/* $Id: url.c,v 1.9 1999/09/24 19:35:25 sas Exp $ */
> +/* $Id: url.c,v 1.10 1999/09/27 15:17:28 andrey Exp $ */
>
> #include <stdlib.h>
> #include <string.h>
> @@ -139,6 +139,14 @@
> ret->port = (unsigned short) strtol(result + subs[7].rm_so, NULL, 10);
> }
> efree(result);
> + }
> + else {
> + STR_FREE(ret->scheme);
> + STR_FREE(ret->path);
> + STR_FREE(ret->query);
> + STR_FREE(ret->fragment);
> + efree(ret);
> + return NULL;
> }
> regfree(&re);
> return ret;
>
>
>
> --
> PHP 4 Beta
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany