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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 13:01:28 2024 UTC