|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39265 The ext/session/ 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.
Block user comment
Status: Assign to:
Bug Type:
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
The script ext/session/ on our system fails:

[root@dc1-b103-app01 ~]# ./ /tmp/session/ 3 6
expr: syntax error
usage: ./ 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-03 13:19 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 04:01:27 2019 UTC