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
 [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

Pull Requests

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: Thu Dec 26 13:01:30 2024 UTC