ID:               19876
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         *URL Functions
 Operating System: Windows 2000 Pro (Sp3)
-PHP Version:      4CVS-2002-10-11
+PHP Version:      4CVS-2002-10-12
 New Comment:

I just tried this snap: php4-win32-200210121400.zip

The result is different, but still incorrect:

Array
(
    [scheme] => ftp
    [host] => ww.moria.com
    [user] => gandalf
    [pass] => :mellon@
    [path] => /foo/bar/index.php
    [query] => page=news
)

host & pass values are wrong...

/OnionMan


Previous Comments:
------------------------------------------------------------------------

[2002-10-12 03:28:35] [EMAIL PROTECTED]

Please wait until the next developer snapshot is generated and try
again.



------------------------------------------------------------------------

[2002-10-11 23:31:53] [EMAIL PROTECTED]

The lack for formatting for phpinfo() when html_errors are Off is
intentional. 

parse_url() was recently rewritten from scratch that probably
introduced the bug you are seeing. I'll look into it in more detail.

------------------------------------------------------------------------

[2002-10-11 23:26:58] [EMAIL PROTECTED]

Here's a link to the phpinfo at my machine:

http://onionman.homeip.net/phpinfo/

A weird thing i noticed is that if i have 'html_errors = Off' in my
php.ini file, then phpinfo looses all it formatting and is
unreadable... is it supposed to be like this?

Anyway... i doublechecked the parse_url bug by going back to an older
snapshot (2002-10-06), and there it works like expected... and then
trying latest snap again (2002-10-12), and there it's the same result
as before... so either something has introduced a bug there since last
week... or my machine is behaving strange... ;)

/OnionMan

------------------------------------------------------------------------

[2002-10-11 23:00:11] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[2002-10-11 22:54:02] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=19876&edit=1

Reply via email to