From: [EMAIL PROTECTED]
Operating system: FreeBSD
PHP version: 4.2.1
PHP Bug Type: Session related
Bug description: trans-sid only replace links in first 4138chars
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 bug report at http://bugs.php.net/?id=17236&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17236&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17236&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17236&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17236&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17236&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17236&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17236&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17236&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17236&r=globals