File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / basic / enable_post_data_reading_01.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:34:34 2012 UTC (12 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, HEAD
php 5.4.3+patches

    1: --TEST--
    2: enable_post_data_reading: basic test
    3: --INI--
    4: enable_post_data_reading=0
    5: --POST_RAW--
    6: Content-Type: application/x-www-form-urlencoded
    7: a=1&b=ZYX
    8: --FILE--
    9: <?php
   10: var_dump($_FILES);
   11: var_dump($_POST);
   12: var_dump($HTTP_RAW_POST_DATA);
   13: var_dump(file_get_contents("php://input"));
   14: --EXPECTF--
   15: array(0) {
   16: }
   17: array(0) {
   18: }
   19: 
   20: Notice: Undefined variable: HTTP_RAW_POST_DATA in %s on line %d
   21: NULL
   22: string(9) "a=1&b=ZYX"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>