|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7793 sscanf() doesn't work with quatation marks
Submitted: 2000-11-13 15:12 UTC Modified: 2000-11-19 08:52 UTC
From: rokas at compservis dot lt Assigned:
Status: Closed Package: Strings related
PHP Version: 4.0.3pl1 OS: Linux
Private report: No CVE-ID: None
 [2000-11-13 15:12 UTC] rokas at compservis dot lt
sscanf($buffer,"<GroupBy GroupID=\"%s\" Value=\"%s\" />",$GroupID,$Value);

$buffer looks like <GroupBy GroupID="ID" Value="VA" />

I get $GroupID=ID" and no $Value set at all.
Why does it produce quatation mark at the end of string, I think it shouldn't do like this ...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-19 08:52 UTC]
Strings for scanf are delimited by whitespace. For what you
need, use ereg or preg_match.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Mar 02 16:01:32 2024 UTC