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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC