From 3550cc5fd975971403d40199427c7598a05b9b08 Mon Sep 17 00:00:00 2001 From: manuel Date: Sat, 7 Feb 2015 18:52:26 +0100 Subject: [PATCH] add tests for #68996 --- ext/soap/tests/bug68996.phpt | 45 ++++++++++++++++++++++++ ext/standard/tests/strings/bug68996.phpt | 16 +++++++++ ext/wddx/tests/bug68996.phpt | 15 ++++++++ 3 files changed, 76 insertions(+) create mode 100644 ext/soap/tests/bug68996.phpt create mode 100644 ext/standard/tests/strings/bug68996.phpt create mode 100644 ext/wddx/tests/bug68996.phpt diff --git a/ext/soap/tests/bug68996.phpt b/ext/soap/tests/bug68996.phpt new file mode 100644 index 0000000000..e503d80239 --- /dev/null +++ b/ext/soap/tests/bug68996.phpt @@ -0,0 +1,45 @@ +--TEST-- +Bug #68996 (Invalid free of CG(interned_empty_string)) +--SKIPIF-- + +--FILE-- + 'http://foo', +]); + +function foo() { + return new SoapFault("\xfc\x63", "some msg"); +} +$s->addFunction("foo"); + +// soap 1.1 +$HTTP_RAW_POST_DATA = << + + + + + +EOF; +$s->handle($HTTP_RAW_POST_DATA); + +// soap 1.2 +$HTTP_RAW_POST_DATA = << + + + + + +EOF; +$s->handle($HTTP_RAW_POST_DATA); +?> +--EXPECTF-- + +some msg + +some msg diff --git a/ext/standard/tests/strings/bug68996.phpt b/ext/standard/tests/strings/bug68996.phpt new file mode 100644 index 0000000000..30ba147f8f --- /dev/null +++ b/ext/standard/tests/strings/bug68996.phpt @@ -0,0 +1,16 @@ +--TEST-- +Bug #68996 (Invalid free of CG(interned_empty_string)) +--SKIPIF-- + +--INI-- +html_errors=1 +--FILE-- + +--EXPECTF-- +
+Warning: : failed to open stream: No such file or directory in %sbug68996.php on line 2
diff --git a/ext/wddx/tests/bug68996.phpt b/ext/wddx/tests/bug68996.phpt new file mode 100644 index 0000000000..fc4ecbc731 --- /dev/null +++ b/ext/wddx/tests/bug68996.phpt @@ -0,0 +1,15 @@ +--TEST-- +Bug #68996 (Invalid free of CG(interned_empty_string)) +--SKIPIF-- + +--FILE-- + "foo" ]) . "\n"; +?> +--EXPECTF-- +
+
foo -- 2.40.0