# SoapServer::handle some times does not call php_end_ob_buffer

- Thread: https://externals.io/message/51946
- Original archive: https://news-web.php.net/php.internals/51946
- Started by Konstantin Leboev on 2011-04-20T13:29:01+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #51946 — Konstantin Leboev — 2011-04-20T13:29:01+00:00

URL: https://externals.io/message/51946#51946

Hi all,

In some cases SoapServer::handle does not call php_end_ob_buffer and I can
not call it from php. For example:

class A {
}

$s = new SoapServer("wsdl.wsdl");
$s->setClass("A");

 `ob_start()`;
var_dump(ob_get_level()); // int(1)
$s->handle();
var_dump(ob_get_level()); // int(2)
echo `ob_get_clean()`; // Notice: `ob_get_clean()`: failed to delete buffer
default output handler

1. When method handle() called without arguments and it is not POST method
2. When unknown compression used or we can't uncompress compressed request.

-- 
Regards,
Konstantin

---

## #51947 — Ferenc Kovacs — 2011-04-20T13:35:06+00:00

URL: https://externals.io/message/51946#51947 · In reply to: #51946

On Wed, Apr 20, 2011 at 3:29 PM, Konstantin Leboev <
konstantin.leboev@gmail.com> wrote:

> Hi all,
>
> In some cases SoapServer::handle does not call php_end_ob_buffer and I can
> not call it from php. For example:
>
> class A {
> }
>
> $s = new SoapServer("wsdl.wsdl");
> $s->setClass("A");
>
> `ob_start()`;
> var_dump(ob_get_level()); // int(1)
> $s->handle();
> var_dump(ob_get_level()); // int(2)
> echo `ob_get_clean()`; // Notice: `ob_get_clean()`: failed to delete buffer
> default output handler
>
> 1. When method handle() called without arguments and it is not POST method
> 2. When unknown compression used or we can't uncompress compressed request.
>
> --
> Regards,
> Konstantin
>

hi

please report it as a bug on http://bugs.php.net, its easier to keep track
of the problem if its in there.

Tyrael

---

## #51948 — Konstantin Leboev — 2011-04-20T13:43:24+00:00

URL: https://externals.io/message/51946#51948 · In reply to: #51947

> please report it as a bug on http://bugs.php.net, its easier to keep track
> of the problem if its in there.
>

http://bugs.php.net/bug.php?id=54575

-- 
Regards,
Konstantin
