php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #798 parse_url() and fopen() reject legal URLs
Submitted: 1998-09-29 05:33 UTC Modified: 1998-10-15 12:57 UTC
From: and at itaca dot it Assigned: jim (profile)
Status: Closed Package: Misbehaving function
PHP Version: 3.0.4 OS: Digital Unix 3.2D
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: and at itaca dot it
New email:
PHP Version: OS:

 

 [1998-09-29 05:33 UTC] and at itaca dot it
<?php

  $a = parse_url("http://www.mclink.it/")
  ...
  $f = fopen("http://www.mclink.it/index.html", "r");

?>

In both cases the parser complaints with:
  Warning: unable to parse url (http://www.mclink.it/...) in <path>/test.phtml on line <xyz>

--

The configure command line is:

./configure --with-apxs=/u0/apache/bin/apxs --with-shared-apache=../apache_1.3.2
 --with-gd --with-mysql --with-dbase=no --with-config-file-path --enable-debug=no
 --enable-track-vars=yes --enable-bcmath=yes --enable-short-tags=no --enable-dl=yes
 --with-zlib=yes

--

No php3.ini file is used.

--

Apparently, the error comes from the url_parse() C function. I've tried to use both the included
regex library and the system regex library, to no avail.

--

Well. I was wrong. Using the system regex library in PHP 3.0.5 parse_url *does* work as expected. The bundled regex library simply doesn't work on Digital Unix 3.2D, either compiled with DEC C compiler or with GCC 2.8.1. Maybe it's worth to be mentioned somewhere, or to modify the configure script.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-10-15 12:57 UTC] and at itaca dot it
I am unable to reproduce this. Your examples work fine for me.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 14:01:36 2024 UTC