Bug #62967 [Ana->Csd]: æ§è¡ææå½æ°æ¶å·¥ä½ç®å½æé®é¢
| From: | laruence@php.net | Date: | Wed, 29 Aug 2012 14:25:07 +0000 |
| Subject: | Bug #62967 [Ana->Csd]: æ§è¡ææå½æ°æ¶å·¥ä½ç®å½æé®é¢ | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173005@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
Updated by: laruence@php.net
Reported by: 360586201 at qq dot com
Summary:
æ§è¡ææå½æ°æ¶å·¥ä½ç®å½æé®é¢
-Status: Analyzed
+Status: Closed
Type: Bug
Package: *Directory/Filesystem functions
PHP Version: 5.3.16
-Assigned To:
+Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
å¦, è¿ä¸ªé®é¢ä¹åå·²ç»æäººæ¥åè¿äº,
ä¹å·²ç»å¨ææ¡£ä¸æ³¨æäº. åè§ #34206
closed, see #34206
http://php.net/manual/en/language.oop5.decon.php
Previous Comments:
------------------------------------------------------------------------
[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è®¾ç½®çæ¯?
------------------------------------------------------------------------
[2012-08-29 13:25:57] 360586201 at qq dot com
Description:
------------
卿æå½æ°çå½åå·¥ä½ç®å½ç«ç¶å为äºapacheç®å½
æ´å¥æªçæ¯ï¼æä¸æ§è¡æ®éæ¹æ³æ¶ï¼ææå½æ°çå·¥ä½ç®å½æ¯æ£ç¡®çï¼ä¹æ¯ä»£ç çæ§è¡ç®å½ï¼å½ææ§è¡è¿æ®
éæ¹æ³åï¼å°±ä¸ç´ä¸ºapacheç®å½äº
Test script:
---------------
<?php
class get_path {
function __construct() {
//è·åå½åå·¥ä½è·¯å¾
echo getcwd().'<br>'; #è¾åº
D:\www\test(ä»£ç æ§è¡ç®å½)
}
function write() {
//è·åå½åå·¥ä½è·¯å¾
echo getcwd().'<br>'; #è¾åº
D:\www\test(ä»£ç æ§è¡ç®å½)
}
function __destruct() {
//è·åå½åå·¥ä½è·¯å¾
echo getcwd(); #è¾åº D:\Program Files\wamp\bin\apache\Apache2.2.21(apacheç®å½)
}
}
$gl = new get_path();
$gl->write();
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62967&edit=1