-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added appserver_redefine to test php script
- Loading branch information
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,20 +19,21 @@ | |
* @author Johann Zelger <[email protected]> | ||
*/ | ||
|
||
header('X-Powered-By: appserver'); | ||
header('Location: http://www.google.de'); | ||
|
||
echo "SAPI_TYPE: " . PHP_SAPI; | ||
appserver_redefine('PHP_SAPI', 'appserver'); | ||
echo "CALL appserver_redefine('PHP_SAPI', 'appserver'): -> SAPI_TYPE: " . PHP_SAPI; | ||
echo PHP_EOL . "==========================================". PHP_EOL; | ||
|
||
appserver_set_headers_sent(true); | ||
$result = var_export(headers_sent(), true); | ||
echo "CALL appserver_set_headers_sent(true): -> headers_sent = " . $result . PHP_EOL; | ||
appserver_set_headers_sent(false); | ||
$result = var_export(headers_sent(), true); | ||
echo "CALL appserver_set_headers_sent(false): -> headers_sent = " . $result . PHP_EOL; | ||
echo "CALL appserver_set_headers_sent(false): -> headers_sent = " . $result; | ||
echo PHP_EOL . "==========================================". PHP_EOL; | ||
|
||
appserver_set_headers_sent(false); | ||
header('X-Powered-By: appserver'); | ||
header('Location: http://www.google.de'); | ||
echo "CALL appserver_get_headers(): -> "; | ||
echo var_export(appserver_get_headers(), true); | ||
echo PHP_EOL . "==========================================". PHP_EOL; | ||
|
@@ -52,7 +53,7 @@ | |
echo "CALL #$index appserver_register_file_upload(): -> "; | ||
echo var_export(appserver_register_file_upload($temp_filename), true); | ||
echo PHP_EOL . "==========================================". PHP_EOL; | ||
|
||
echo "CALL #$index move_uploaded_file: -> " .var_export(move_uploaded_file($temp_filename, '/tmp/move_uploaded_file_success'), true); | ||
echo PHP_EOL . "==========================================". PHP_EOL; | ||
} | ||
} |