Bug #62967 [Csd]: 执行析构函数时工作目录有问题

From: Date: Wed, 29 Aug 2012 14:37:37 +0000
Subject: Bug #62967 [Csd]: 执行析构函数时工作目录有问题
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8791@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62967&edit=1 ID: 62967 User updated by: 360586201 at qq dot com Reported by: 360586201 at qq dot com Summary: 执行析构函数时工作目录有问题 Status: Closed Type: Bug Package: Documentation problem PHP Version: 5.3.16 Assigned To: laruence Block user comment: N Private report: N New Comment: 我网上上次搜过,有人也遇到过,说在nginx下是正常的,在apache下才有这问题 Previous Comments: ------------------------------------------------------------------------ [2012-08-29 14:25:07] laruence@php.net 哦, 这个问题之前已经有人报告过了, 也已经在文档中注明了. 参见 #34206 closed, see #34206 http://php.net/manual/en/language.oop5.decon.php ------------------------------------------------------------------------ [2012-08-29 14:22:05] 360586201 at qq dot com 这是算一个bug吧?那是不修复了? ------------------------------------------------------------------------ [2012-08-29 14:19:19] laruence@php.net __destruct被调用的时候, 当前脚本已经完成了执行, 进入了request shutdown时期, 所以, 此时的工作 目录变成了apache的工作目录. while the __destruct was calling, the script had already be executed, and it has enter the request shutdown phase. so the current work dir became to the apache's . 我大体看了下, 要修复这个, 我们需要花费比较大的改动. 有些昂贵 I'd like mark this as won't fix. ------------------------------------------------------------------------ [2012-08-29 14:12:53] 360586201 at qq dot com DocumentRoot "D:/www/" ------------------------------------------------------------------------ [2012-08-29 14:09:09] laruence@php.net 你的DocumentRoot设置的是? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=62967 -- Edit this bug report at https://bugs.php.net/bug.php?id=62967&edit=1

« previous php.doc.bugs (#8791) next »