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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 10:00:01 2026 UTC