Edit report at https://bugs.php.net/bug.php?id=65138&edit=1
ID: 65138 Updated by: fel...@php.net Reported by: roberto at spadim dot com dot br Summary: Parse url don't recognize SMB protocol users -Status: Open +Status: Not a bug Type: Bug Package: *General Issues Operating System: any PHP Version: 5.5.0 Block user comment: N Private report: N New Comment: parse_url() is not intended to parse smb uris. Try something like https://github.com/owncloud/3rdparty/blob/master/smb4php/smb.php does. Previous Comments: ------------------------------------------------------------------------ [2013-06-26 20:35:46] roberto at spadim dot com dot br 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' ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65138&edit=1