PageRenderTime 42ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/bad/tests/basic/bug61000.php

http://github.com/facebook/hiphop-php
PHP | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | c9c98566bf4a7a269d1e0c3fe83a293b MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?php
  2. parse_str("a[a][]=foo&a[a][b][c]=bar", $_GET);
  3. $_REQUEST = array_merge($_REQUEST, $_GET);
  4. _filter_snapshot_globals();
  5. parse_str("1[a][]=foo&1[a][b][c]=bar", $_POST);
  6. $_REQUEST = array_merge($_REQUEST, $_POST);
  7. _filter_snapshot_globals();
  8. print_r($_GET);
  9. print_r($_POST);