parse_str_with_unpack.phpt 288 B

12345678910111213141516
  1. --TEST--
  2. Calling parse_str through argument unpacking
  3. --FILE--
  4. <?php
  5. function test() {
  6. $i = 0;
  7. parse_str(...["i=41"]);
  8. var_dump($i + 1);
  9. }
  10. test();
  11. ?>
  12. --EXPECTF--
  13. Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in %s on line %d
  14. int(42)