bug73181.phpt 350 B

123456789101112131415161718192021
  1. --TEST--
  2. Bug #73181: parse_str() without a second argument leads to crash
  3. --FILE--
  4. <?php
  5. function x() {
  6. parse_str("1&x");
  7. var_dump(get_defined_vars());
  8. }
  9. x();
  10. ?>
  11. --EXPECTF--
  12. Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in %s on line %d
  13. array(2) {
  14. [1]=>
  15. string(0) ""
  16. ["x"]=>
  17. string(0) ""
  18. }