X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fgh-issue7.phpt;fp=tests%2Fgh-issue7.phpt;h=38e597c0d728ce65002b304da29b5bae7e0bd561;hb=bc3a439b3ae1617da6d17aca43dac9d0b62757ff;hp=0000000000000000000000000000000000000000;hpb=c3f7d34f18cd62956f241092c67a38edf246328d;p=m6w6%2Fext-http diff --git a/tests/gh-issue7.phpt b/tests/gh-issue7.phpt new file mode 100644 index 0000000..38e597c --- /dev/null +++ b/tests/gh-issue7.phpt @@ -0,0 +1,32 @@ +--TEST-- +crash with querystring and exception from error handler +--SKIPIF-- + +--GET-- +q[]=1&r[]=2 +--FILE-- +get("q","s")); +} catch (\Exception $e) { + echo $e->getMessage(),"\n"; +} +try { + $r = new http\Env\Request; + var_dump($r->getQuery("r", "s")); +} catch (\Exception $e) { + echo $e->getMessage(),"\n"; +} + +?> +===DONE=== +--EXPECT-- +Test +Array to string conversion +Array to string conversion +===DONE===