Bug #14327 Updated: basename crashes on empty string
| From: | derick@php.net | Date: | Mon, 03 Dec 2001 19:06:03 +0000 |
| Subject: | Bug #14327 Updated: basename crashes on empty string | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72366@lists.php.net to get a copy of this message | ||
ID: 14327
Updated by: derick
Reported By: theseer@php.net
Old Status: Open
Status: Closed
Bug Type: Filesystem function related
Operating System: Linux 2.4.16 ( RH 7.2 based)
PHP Version: 4.0CVS-2001-12-03
New Comment:
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 <mfischer@guru.josefine.at>)
#- Simplyfied code using zend_parse_parameters().
It's already fixed.
regards,
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-12-03 13:40:56] theseer@php.net
<?php
$foo=basename($test);
echo "alive?";
?>
A segfault occures while calling basename() on an empty string - at least it does on my cvs-version
from Dec 30 2001
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14327&edit=1