From: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]/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