ID: 17236
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Session related
Operating System: FreeBSD
PHP Version: 4.2.1
New Comment:
fter some further investigation:
This can be reproduced in php4.1.2 by changing the php.ini setting
output_buffering = 4000
IN 4.1.2
if it is 'off' = code works perfectly
if it is 4000 (or any number) = code has same problem
IN 4.2.1
if it is 'off or 4000' code has problems.
looking at 4.3 - all this stuff has been completely re-written :)
Previous Comments:
------------------------------------------------------------------------
[2002-05-15 02:25:36] [EMAIL PROTECTED]
OK, This is a strange one..... the whole application works perfectly on
4.0*/4.1*, but we started testing with 4.2.1
I'm filing it as a trans-sid bug (as thats whats noticable the most)-
but it could be
- output buffer?!?
- class variable issues..
- other weird stuff....
------------Part of the html/php page
<table border="0" cellpadding="3" cellspacing="1" width="62%">
<tbody>
<tr class="cleartable">
<td width="10%"><? if ( $auth->is_Requestor() ) { ?><img
src="<?=htmlspecialchars($config->simple_base_url)
?>/translatorsdb/newpo
sts.gif" width="15" height="14" border="0" alt=""> </td>
-----------Output from the html page
<table border="0" cellpadding="3" cellspacing="1" width="62%">
<tbody>
<tr class="cleartable">
<td<img src="/translators/translatorsdb/newposts.gif" width="15"
height="14" border="0" alt=""> </td>
___^___ notice the misformed html in the output.
the output is somehow getting messed up...
CONFIGURE LINE
'./configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-system-regex' '--disable-debug' '--enable-track-vars'
'--without-gd' '--with-mysql' '--enable-trans-sid'
QUICK OVERVIEW OF FEATURE USED:
trans-sess-id sessions are being used and it does manage to replace
all href with the 'sid' before (roughly) the 4138th character,
after that, even if the break is in a valid place 'htmlwize', it will
not replace any hrefs after that postition.
the file/code above is included from within a class instance method
eg. something like this.
class default_page {
var $template = "home.html";
function output() {
$template->compile($this->template);
global $session,$config;
$auth = &$session->auth;
include($template->ouput_file);
}
}
regards
alan
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17236&edit=1