Bugs php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login

go to bug id or search bugs for

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

Patches

Pull Requests

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-2025 The PHP Group
All rights reserved. Last updated: Mon Nov 24 02:00:01 2025 UTC

AltStyle によって変換されたページ (->オリジナル) /