phpinfo2.phpt 283 B

123456789101112131415161718192021222324
  1. --TEST--
  2. phpinfo() CGI
  3. --POST--
  4. dummy=x
  5. --FILE--
  6. <?php
  7. var_dump(phpinfo());
  8. echo "--\n";
  9. var_dump(phpinfo(0));
  10. echo "--\n";
  11. var_dump(phpinfo(INFO_LICENSE));
  12. ?>
  13. --EXPECTF--
  14. <!DOCTYPE %s>
  15. %a</html>bool(true)
  16. --
  17. <!DOCTYPE %s>
  18. %a</html>bool(true)
  19. --
  20. <!DOCTYPE %s>
  21. %a</html>bool(true)