|  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
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.
Bug Type:
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....


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-12 09:12 UTC] rasmus
Fixed - thanks for catching that
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 08 16:05:52 2022 UTC