Bug #14327: basename crashes on empty string
| From: | theseer@php.net | Date: | Mon, 03 Dec 2001 18:40:57 +0000 |
| Subject: | Bug #14327: basename crashes on empty string | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-72360@lists.php.net to get a copy of this message | ||
From: theseer@php.net
Operating system: Linux 2.4.16 ( RH 7.2 based)
PHP version: 4.0CVS-2001-12-03
PHP Bug Type: Filesystem function related
Bug description: basename crashes on empty string
<?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 bug report at: http://bugs.php.net/?id=14327&edit=1