|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-10-29 06:19 UTC] laruence@php.net
[2012-10-29 06:23 UTC] laruence@php.net
[2012-10-29 06:23 UTC] laruence@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: laruence
[2013-06-27 03:30 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 31 13:00:02 2025 UTC |
Description: ------------ yaf 2.1.18 2.2.5都出现这个问题 wamp lnmp 都出现 $_SERVER['SCRIPT_NAME']在经过yaf处理之后值发生改变 从/index.php 变成了 \ndex.php Test script: --------------- <?php print_r($_SERVER); define ("APPLICATION_PATH", dirname(__FILE__) . "/application"); $application = new Yaf_Application("conf/sample.ini"); $response = $application->bootstrap()->run(); print_r($_SERVER); ?> 在yaf前后分别dump $_SERVER 得到的结果不同 之前是 [SCRIPT_NAME] => /index.php 之后是 [SCRIPT_NAME] => \ndex.php