#19876 [Opn->Fbk]: Problem with parse_url() function...

From: Date: Sat, 12 Oct 2002 04:00:11 +0000
Subject: #19876 [Opn->Fbk]: Problem with parse_url() function...
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22193@lists.php.net to get a copy of this message
ID: 19876 Updated by: iliaa@php.net Reported By: onionman@home.se -Status: Open +Status: Feedback Bug Type: *URL Functions Operating System: Windows 2000 Pro (Sp3) PHP Version: 4CVS-2002-10-11 New Comment: The 1 comes from 'echo print_r' you do not need to echo print_r() it'll do it automatically. The missing letter is something I am unable to replicate on any of my machines. Could you please should output of phpinfo() on your system, maybe that'll yeild some clues. Previous Comments: ------------------------------------------------------------------------ [2002-10-11 22:54:02] onionman@home.se 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 this bug report at http://bugs.php.net/?id=19876&edit=1

« previous php.bugs (#22193) next »