|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53029 wrong cwd when destructor calls
Submitted: 2010-10-08 22:54 UTC Modified: 2010-10-09 00:16 UTC
From: koc-dp at yandex dot ru Assigned:
Status: Not a bug Package: Streams related
PHP Version: 5.3.3 OS: Windows 7 x64
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: koc-dp at yandex dot ru
New email:
PHP Version: OS:


 [2010-10-08 22:54 UTC] koc-dp at yandex dot ru
I'm writing my own adapter for sessions and was very surprized when find this bug. When destructor calls - cwd changes to php install dir.

Code for reproducing this bug located on the github's gist . PHP runs as GGI (mod_actions).

Test script:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-09 00:16 UTC]
-Status: Open +Status: Bogus
 [2010-10-09 00:16 UTC]
Already documented "The working directory in the script shutdown phase can be different with some SAPIs (e.g. Apache)."

See bug #42626
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Sep 25 21:01:24 2023 UTC