HTTP authentication with PHP - Possible Documentation Error
| From: | Peter de Salis | Date: | Tue, 03 Mar 2009 07:54:21 +0000 |
| Subject: | HTTP authentication with PHP - Possible Documentation Error | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-1934@lists.php.net to get a copy of this message | ||
From: pasalis at tpg dot com dot au
Operating system: Windows XP service pack 2
PHP version: 5.2.9
PHP Bug Type: Documentation problem
Bug description: HTTP authentication with PHP -
Example #2 Digest HTTP Authentication
example
Description:
------------
The sample script does not work correctly on my system. I think that
the problem lies in the function http_digest_parse($txt)
Unfortunately I'm new to PHP and have never worked with Regular
Expressions before but as best as I can tell the problem lies in the
line ...
preg_match_all('@(\w+)=(?:([\'"])([^\2]+)\2|([^\s,]+))@', $txt,
$matches, PREG_SET_ORDER);
I would be grateful for any assistance with this issue as the sample
script appears to be quite valuable.
Thanks
Peter de Salis