php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #541 php -s (and no filename) produces segfault
Submitted: 1998-07-12 08:23 UTC Modified: 1998-07-12 09:12 UTC
From: ml at vdazone dot org Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.1 OS: RedHat 5.1 (Intel)
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: ml at vdazone dot org
New email:
PHP Version: OS:

 

 [1998-07-12 08:23 UTC] ml at vdazone dot org
when calling php -s (without a filename),
php segfaults immediately.
A quick glance with gdb shows that this comes from main.c line 2096
 PUTS (GLOBAL(request_info).filename)
and the filename is not specified (hence NULL). In the end, this causes
the fputs system call to segfault....

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-12 09:12 UTC] rasmus
Fixed - thanks for catching that
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 23:01:34 2024 UTC