php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63381 $_SERVER['SCRIPT_NAME'] change by yaf
Submitted: 2012-10-29 06:01 UTC Modified: 2012-10-29 06:23 UTC
From: iflove at 163 dot com Assigned: laruence (profile)
Status: Closed Package: yaf (PECL)
PHP Version: 5.3.18 OS: lnmp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: iflove at 163 dot com
New email:
PHP Version: OS:

 

 [2012-10-29 06:01 UTC] iflove at 163 dot com
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-29 06:19 UTC] laruence@php.net
Automatic comment from SVN on behalf of laruence
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=328176
Log: Fixed bug #63381 ($_SERVER['SCRIPT_NAME'] changed by yaf)
 [2012-10-29 06:23 UTC] laruence@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [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
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=pecl/system/yaf.git;a=commit;h=271f801c9520f81d4789f4b6410c5df95cf73d47
Log: Fixed bug #63381 ($_SERVER['SCRIPT_NAME'] changed by yaf)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC