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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Thu Nov 21 12:01:29 2024 UTC