|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-07-03 21:57 UTC] felipe@php.net
-Status: Open
+Status: Not a bug
[2013-07-03 21:57 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 11:00:01 2025 UTC |
Description: ------------ i have a url using smb protocol (or cifs) it don't return the right user/password: url: smb://domain/user@password:host/folder another problem with smb is the password... some passwords have @ and : characters... any idea how to solve this? Test script: --------------- print_r(parse_url("smb://domain/user@password:host/folder")); Expected result: ---------------- array ( 'scheme' => 'smb', 'user' => 'domain/user', 'password' => 'password', 'host' => 'host', 'path' => 'folder' ) Actual result: -------------- array ( 'scheme' => 'smb', 'host' => 'domain', 'path' => '/user@password:host/folder' )