It appears extra newlines is added for each included
encrypted file.
This breaks the header() function, so cookies and
redirects can't be sent.
Warning: Cannot add header information - headers
already sent by (output started at
common/dbconnect.inc.php(1) :
All my php files contain only <?
databay_microcode_include("filename.k"); ?>
filename.k then has the encrypted php.
All my original php-files starts by including
common/dbconnect.inc.php
Somewhere near the end of
PHP_FUNCTION(databay_microcode_include)
is this:
erealloc(buffer,output_count+2);
buffer[output_count]='\n';
buffer[output_count+1]='\0';
I suspected this \n is the one produced, but when I
replaced the \n with \0, I got "Parse error: unexpected
character $"
Is it possible to avoid this extra newline?
Logged In: YES
user_id=169944
A quick way to work around this bug until it's resolved is to
use PHP's auto_prepend_file and auto_append_file options in
the PHP.ini (you can do this via the .htaccess if you've not
got access to your PHP.ini).
Create a file called prepend.php and in it put:-
<?php ob_start(); ?>
And put this filename in the auto_prepend_file directive, and
then create another file called append.php and in it put:-
<?php ob_end_flush(); ?>
Put this filename in the auto_append_file directive.
The page should now work (or at least it does for me).