--TEST-- Bug #68996 (Invalid free of CG(interned_empty_string)) --EXTENSIONS-- soap --SKIPIF-- --FILE-- 'http://foo', ]); function foo() { return new SoapFault("\xfc\x63", "some msg"); } $s->addFunction("foo"); function handleFormatted($s, $input) { ob_start(); $s->handle($input); $response = ob_get_clean(); // libxml2 2.13 has different formatting behaviour: it outputs instead of // this normalizes the output to $response = str_replace('', '', $response); $response = str_replace('', '', $response); echo $response; } // soap 1.1 $HTTP_RAW_POST_DATA = << EOF; handleFormatted($s, $HTTP_RAW_POST_DATA); // soap 1.2 $HTTP_RAW_POST_DATA = << EOF; handleFormatted($s, $HTTP_RAW_POST_DATA); ?> --EXPECT-- some msg some msg