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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 - 4 = ?
Subscribe to this entry?

 
 [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-2020 The PHP Group
All rights reserved.
Last updated: Wed Jun 03 07:01:25 2020 UTC