php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6261 sscanf($a, "%d"); produces core dump if $a is undefined
Submitted: 2000-08-20 10:25 UTC Modified: 2000-08-26 07:11 UTC
From: alex at zend dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Latest CVS (20/08/2000) OS: linux-glibc21
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alex at zend dot com
New email:
PHP Version: OS:

 

 [2000-08-20 10:25 UTC] alex at zend dot com
<? sscanf($a, "%d"); ?>

This core dumps if $a is not defined.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-25 14:09 UTC] sniper@php.net
For me it just reports:

Warning: Undefined variable: a in /www/htdocs/test/testitesti/testinkia_on_tama.php on line 3

And doesn't crash. (with the latest CVS)

--Jani
 [2000-08-26 07:11 UTC] stas@php.net
This should be already fixed in latest CVS.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 18:00:01 2026 UTC