|  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
 [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-2023 The PHP Group
All rights reserved.
Last updated: Tue Jun 06 23:03:36 2023 UTC