Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004125 [Quercus] major always 07-15-10 10:21 02-04-11 02:11
Reporter kdecherf View Status public  
Assigned To domdorn
Priority normal Resolution fixed  
Status closed   Product Version 4.0.8
Summary 0004125: ob_get_clean() does not exec ob_end_clean()
Description From PHP.net :
ob_get_clean() essentially executes both ob_get_contents() and ob_end_clean().

Whereas in OutputModule.java :
ob_get_clean() just calls ob.clean()

Possible solution :
Replace ob.clean() in OutputModule.java:172 by ob_end_clean(ob) ?
Additional Information Reported with Elgg PHP Social network 1.7.1
Attached Files  OutputModule.patch [^] (458 bytes) 07-25-10 13:32

- Relationships

- Notes
(0004675)
kdecherf
07-15-10 12:26

I forgot to note the problem on Elgg :
An unwanted content's output appears when ob_get_clean() is used.
And this unwanted behavior is fixed when ob_get_clean is replaced by ob_get_contents(); ob_end_clean().
 
(0004683)
kdecherf
07-25-10 13:32

Fixed, replace ob.clean() by ob_end_clean(env).
Patch proposal in attachment (source based on SVN repo).
 
(0004786)
domdorn
10-08-10 07:48

could you please provide a simple testcase for that?

The code in OutputModule looks correct, but I will check again.
Also simply replacing ob.clean() with ob_end_clean() has the side effect of turning of OutputBuffering, so your patch would introduce a regression.

 
(0004787)
domdorn
10-08-10 13:33

After looking through the docs again, I actually think you where right.
Will check again tomorrow.
 
(0004795)
domdorn
10-18-10 13:27

fixed in svn rev. r7625
 

- Issue History
Date Modified Username Field Change
07-15-10 10:21 kdecherf New Issue
07-15-10 12:26 kdecherf Note Added: 0004675
07-24-10 15:26 kdecherf Issue Monitored: kdecherf
07-25-10 13:32 kdecherf Note Added: 0004683
07-25-10 13:32 kdecherf File Added: OutputModule.patch
10-05-10 14:17 domdorn Status new => assigned
10-05-10 14:17 domdorn Assigned To  => domdorn
10-08-10 07:48 domdorn Note Added: 0004786
10-08-10 07:48 domdorn Status assigned => feedback
10-08-10 13:33 domdorn Note Added: 0004787
10-18-10 13:27 domdorn Status feedback => resolved
10-18-10 13:27 domdorn Fixed in Version  => 4.0.11
10-18-10 13:27 domdorn Resolution open => fixed
10-18-10 13:27 domdorn Note Added: 0004795
10-20-10 07:50 kdecherf Issue End Monitor: kdecherf
02-04-11 02:11 domdorn Status resolved => closed


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
40 total queries executed.
30 unique queries executed.
Powered by Mantis Bugtracker