php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rokas at compservis dot lt
New email:
PHP Version: OS:

 

 [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 ...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Oct 16 14:01:27 2019 UTC