php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54575 SoapServer::handle some times does not call php_ob_end_buffer
Submitted: 2011-04-20 15:42 UTC Modified: -
Votes:16
Avg. Score:4.2 ± 1.0
Reproduced:14 of 15 (93.3%)
Same Version:9 (64.3%)
Same OS:11 (78.6%)
From: konstantin dot leboev at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3.6 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: konstantin dot leboev at gmail dot com
New email:
PHP Version: OS:

 

 [2011-04-20 15:42 UTC] konstantin dot leboev at gmail dot com
Description:
------------
In some cases SoapServer::handle does not call php_end_ob_buffer and I can not 
call it from php. For example:

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.

Test script:
---------------
class A { 
}

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

ob_start();
var_dump(ob_get_level());
$s->handle();
var_dump(ob_get_level());
echo ob_get_clean();

Expected result:
----------------
int(1)
int(1)

Actual result:
--------------
int(1)
int(2)
Notice: ob_get_clean(): failed to delete buffer default output handler

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-05 09:03 UTC] shehi at imanov dot name
Has this bug been fixed on 5.3.10?
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Apr 02 13:03:41 2023 UTC