#41799 [Opn->Bgs]: Activescript not working in ASP
| From: | tony2001@php.net | Date: | Mon, 25 Jun 2007 11:56:37 +0000 |
| Subject: | #41799 [Opn->Bgs]: Activescript not working in ASP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114153@lists.php.net to get a copy of this message | ||
ID: 41799
Updated by: tony2001@php.net
Reported By: threedot at hotmail dot it
-Status: Open
+Status: Bogus
Bug Type: IIS related
Operating System: Windows XP SP2 Professional
PHP Version: 5CVS-2007-06-25 (CVS)
New Comment:
Please report PECL issues using PECL bugtracker.
http://pecl.php.net/package/PHPScript
Thank you.
Previous Comments:
------------------------------------------------------------------------
[2007-06-25 11:46:31] threedot at hotmail dot it
Description:
------------
Activescript running in ASP, but Doesn't exist ASP type library in
$GLOBALS. Underly, not useable STDOUT and STDIN.
Reproduce code:
---------------
<%@
Language = "PHPScript"
%>
<%
// test.asp
//$Response->Write('threedot is googleman'); // it's doesn't working
/* -- working region -- */
$xs = fopen('hehehe.txt','w');
fwrite($xs,print_r($GLOBALS, true));
fclose($xs);
/* -- working region -- */
%>
---------------------------------------
<job id="test">
<script language="PHPScript">
// test.wsf
//$WScript->Echo('threedot is googleman'); // this is working
already
/* -- working region -- */
$fp = fopen('hehehe.txt','w');
fwrite($fp,print_r($GLOBALS,true));
fclose($fp);
/* -- working region -- */
</script>
</job>
Expected result:
----------------
test.asp results
Array
(
[GLOBALS] => Array
*RECURSION*
[_ENV] => Array
(
...
)
[HTTP_ENV_VARS] => Array
(
...
)
[_POST] => Array
(
)
[HTTP_POST_VARS] => Array
(
)
[_GET] => Array
(
)
[HTTP_GET_VARS] => Array
(
)
[_COOKIE] => Array
(
)
[HTTP_COOKIE_VARS] => Array
(
)
[_SERVER] => Array
(
[REQUEST_TIME] => 1182769334
[argv] => Array
(
)
[argc] => 0
)
[HTTP_SERVER_VARS] => Array
(
[REQUEST_TIME] => 1182769334
[argv] => Array
(
)
[argc] => 0
)
[_FILES] => Array
(
)
[HTTP_POST_FILES] => Array
(
)
[_REQUEST] => Array
(
)
)
------------------------
test.wsf results
WScript object is GLOBAL
Array
(
[GLOBALS] => Array
*RECURSION*
[_ENV] => Array
(
...
)
[HTTP_ENV_VARS] => Array
(
...
)
[_POST] => Array
(
)
[HTTP_POST_VARS] => Array
(
)
[_GET] => Array
(
)
[HTTP_GET_VARS] => Array
(
)
[_COOKIE] => Array
(
)
[HTTP_COOKIE_VARS] => Array
(
)
[_SERVER] => Array
(
[REQUEST_TIME] => 1182770478
[argv] => Array
(
)
[argc] => 0
)
[HTTP_SERVER_VARS] => Array
(
[REQUEST_TIME] => 1182770478
[argv] => Array
(
)
[argc] => 0
)
[_FILES] => Array
(
)
[HTTP_POST_FILES] => Array
(
)
[_REQUEST] => Array
(
)
[scriptlet] => variant Object
[globals] => variant Object
[WScript] => variant Object
[WSH] => variant Object
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41799&edit=1