|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14832 basename with 2nd parm corrupts source string
Submitted: 2002-01-03 15:01 UTC Modified: 2002-01-03 15:21 UTC
From: pascal at vmfacility dot fr Assigned:
Status: Closed Package: Directory function related
PHP Version: 4.1.0 OS: Linux 2.4.8-26mdk i686
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:
Solve the problem:
10 + 31 = ?
Subscribe to this entry?

 [2002-01-03 15:01 UTC] pascal at vmfacility dot fr
$basename=basename($fn, ".txt");
echo "basename=$basename\n";
echo "fn after=$fn\n";

X-Powered-By: PHP/4.1.0
Content-type: text/html; charset=iso-8859-15

fn after=/dir1/dir2/filenametxt

$fn ha been corrupted by basename() call.

'./configure' '--disable-static' '--disable-debug' '--disable-rpath' '--enable-pic' '--enable-inline-optimization' '--prefix=/usr' '--with-zlib' '--with-config-file-path=/etc' '--enable-magic-quotes' '--enable-debugger' '--enable-track-vars' '--enable-safe-mode' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-versioning' '--enable-sysvsem' '--enable-sysvshm' '--with-mod_charset' '--enable-force-cgi-redirect' '--with-mm' '--enable-trans-sid' '--with-dbase' '--with-filepro' '--enable-yp' '--enable-ftp' '--with-xml' '--with-gettext' <br>[Some modules are external: look for packages php-pgsql,php-mysql,...]


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-03 15:20 UTC]
fixed in CVS
 [2002-01-03 15:21 UTC]
forgot to close
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 27 08:03:38 2021 UTC