php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39265 The ext/session/mod_files.sh script is faulty (fix included)
Submitted: 2006-10-26 14:04 UTC Modified: 2006-11-03 13:19 UTC
From: michal dot taborsky at gmail dot com Assigned: iliaa (profile)
Status: Closed Package: Session related
PHP Version: 5.1.6 OS: Linux CentOS 4.4
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michal dot taborsky at gmail dot com
New email:
PHP Version: OS:

 

 [2006-10-26 14:04 UTC] michal dot taborsky at gmail dot com
Description:
------------
The script ext/session/mod_files.sh on our system fails:

[root@dc1-b103-app01 ~]# ./mod_files.sh /tmp/session/ 3 6
expr: syntax error
usage: ./mod_files.sh basedir depth

The reason being this line:

sh $0 $newpath `expr $2 - 1 $3`

It can be fixed easily:

sh $0 $newpath `expr $2 - 1` $3



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-03 13:19 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 15:01:28 2024 UTC