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
 [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: Fri Apr 26 13:01:28 2024 UTC