|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14327 basename crashes on empty string
Submitted: 2001-12-03 13:40 UTC Modified: 2001-12-03 14:06 UTC
From: Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0CVS-2001-12-03 OS: Linux 2.4.16 ( RH 7.2 based)
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.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2001-12-03 13:40 UTC]
  echo "alive?";

A segfault occures while calling basename() on an empty string - at least it does on my cvs-version from Dec 30 2001


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-03 14:06 UTC]
From the logfile:

revision 1.254
date: 2001/12/01 15:45:55;  author: derick;  state: Exp;  lines: +6 -15
- Fix a crash when passing e.g. NULL to basename(). (Patch by Markus
  Fischer <>)
#- Simplyfied code using zend_parse_parameters().

It's already fixed.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 01:01:27 2024 UTC