View Issue Details

IDProjectCategoryView StatusLast Update
0008761mantisbtscriptingpublic2021-08-07 06:41
Reporterjvanlier Assigned Tograngeway  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
PlatformASP.NETOSVista 32BitOS VersionBusiness
Fixed in Version1.2.0a2 
Summary0008761: compress_handler called before defined
Description

using Phalanger 2.0 beta4 to run mantis under IIS/ASP.NET
the compress_handler function is called before it is defined
phpc throws an error that blocks mantis usage completely

Steps To Reproduce

Install
IIS 7
.NET FrameWork 2.0
Phalanger-2.0-beta4
Mantis 1.1.0

Browse to mantis web

Additional Information

A patch has been included but it only works around the issue by not using compress_handler if !function_exists( 'compress_handler' )

TagsNo tags attached.
Attached Files
mantis-1.1.0.phalanger.patch (601 bytes)   
Index: core.php
===================================================================
--- core.php	(revision 1)
+++ core.php	(working copy)
@@ -36,7 +36,9 @@
 
 	# Before doing anything else, start output buffering so we don't prevent
 	#  headers from being sent if there's a blank line in an included file
-	ob_start( 'compress_handler' );
+	if(function_exists( 'compress_handler' )) {
+		ob_start( 'compress_handler' );
+	} else ob_start();
 
 	# Include compatibility file before anything else
 	require_once( dirname( __FILE__ ).DIRECTORY_SEPARATOR.'core'.DIRECTORY_SEPARATOR.'php_api.php' );

Relationships

related to 0028963 closeddregad Do not buffer output for CLI scripts 

Activities

grangeway

grangeway

2008-08-01 18:16

reporter   ~0018992

Hello,

Commited a possible fix for this issue to SVN (albeit in a different way)

i'm currently unable to test against phalanger as the MArch 2008 release seems to be broken for require_once() (and documented on their forums/ fixed in codeplex, but not yet in a release build.)

Paul

Related Changesets

MantisBT: master 5ab8d058

2008-08-01 18:16

Paul Richards


Details Diff
0008761: compress_handler called before defined

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5481 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0008761
mod - core/compress_api.php Diff File
mod - core.php Diff File