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
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: 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

Pull Requests

History

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