#19876 [NEW]: Problem with parse_url() function...

From: Date: Sat, 12 Oct 2002 03:54:02 +0000
Subject: #19876 [NEW]: Problem with parse_url() function...
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22192@lists.php.net to get a copy of this message
From:             onionman@home.se
Operating system: Windows 2000 Pro (Sp3)
PHP version:      4CVS-2002-10-11
PHP Bug Type:     *URL Functions
Bug description:  Problem with parse_url() function...

Snapshot used: php4-win32-200210120200.zip

This simple script parses an ftp-url:

<?php
	$url = "ftp://gandalf:mellon@www.moria.com/foo/bar/index.php?page=news";
	
	$parts = parse_url($url);
	
	echo '<pre>'."\n";
	echo print_r($parts)."\n";
	echo '</pre>'."\n";
?>

When i run the script i get this output:

Array
(
    [scheme] => ftp
    [host] => www.moria.com
    [user] => gandalf
    [pass] => mello
    [path] => /foo/bar/index.php
    [query] => page=news
)
1

Note the cropped password value... it is cropped by one charachter... last
snapshot i tested (2002-10-06) did not have this behaviour.

BTW: What does the 1 that is output after the value pairs mean?
-- 
Edit bug report at http://bugs.php.net/?id=19876&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=19876&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=19876&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=19876&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=19876&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=19876&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=19876&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=19876&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=19876&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=19876&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=19876&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19876&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=19876&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=19876&r=isapi



Thread (8 messages)

« previous php.bugs (#22192) next »