From: threedot at hotmail dot it
Operating system: Windows XP SP2 Professional
PHP version: 5CVS-2007-06-25 (CVS)
PHP Bug Type: IIS related
Bug description: Activescript not working in ASP
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 bug report at http://bugs.php.net/?id=41799&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41799&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41799&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41799&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41799&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41799&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41799&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41799&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41799&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41799&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41799&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41799&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41799&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41799&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41799&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41799&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41799&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41799&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41799&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41799&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41799&r=mysqlcfg