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: Analyzed Type: Bug Package: *Directory/Filesystem functions PHP Version: 5.3.16 Block user comment: N Private report: N New Comment: è¿æ¯ç®ä¸ä¸ªbugå§ï¼é£æ¯ä¸ä¿®å¤äºï¼ Previous Comments: ------------------------------------------------------------------------ [2012-08-29 14:19:19] [email protected] __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] [email protected] ä½ ç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
