php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57721 Activescript not working in ASP
Submitted: 2007-06-25 08:14 UTC Modified: 2016-06-23 17:22 UTC
Votes:11
Avg. Score:1.4 ± 1.1
Reproduced:0 of 1 (0.0%)
From: threedot at hotmail dot it Assigned:
Status: Wont fix Package: PHPScript (PECL)
PHP Version: 5.2.0 OS: Windows XP SP2 Professional
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: threedot at hotmail dot it
New email:
PHP Version: OS:

 

 [2007-06-25 08:14 UTC] 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

)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-23 17:22 UTC] pollita@php.net
-Status: Open +Status: Wont fix
 [2016-06-23 17:22 UTC] pollita@php.net
Bug report is missing "Actual Results" section, also the ability to use <script language="php"> is gone from current PHP, so the reproduce code is meaningless.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Dec 03 23:05:52 2022 UTC