php.net |  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
44 + 17 = ?
Subscribe to this entry?

 
 [2010-10-08 22:54 UTC] koc-dp at yandex dot ru
Description:
------------
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 http://gist.github.com/617503 . PHP runs as GGI (mod_actions).


Test script:
---------------
http://gist.github.com/617503


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

See bug #42626

http://www.php.net/manual/en/language.oop5.decon.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 16:01:30 2024 UTC