From:             [EMAIL PROTECTED]
Operating system: redhat 6.2
PHP version:      4.0.6
PHP Bug Type:     Output Control
Bug description:  ob_gzhandler screws-up included .js files

i put this in my apache1.3.12 httpd.conf:
-----------------------------------------
 AddType application/x-httpd-php .js
-----------------------------------------

this in a .htm file:
----------------------------------------
this
<script language=javascript src=titatest.js></script>
----------------------------------------

and this in titatest.js:
----------------------------------------
document.write('is a');
<?echo ("document.write(' test ');");?>
----------------------------------------

the output of this little script should have been:
----------------------------------------
this is a test
----------------------------------------

but instead, it gives me this error (in the javascript console):
----------------------------------------
JavaScript Error: http://www.devweb.nl/titatest.js, line 1:
illegal character.

.^
----------------------------------------

i put this in my php.ini:
output_handler = ob_gzhandler 

but if i turn this off, all seems to work fine again.

other than the above error,
ob_gzhandler seems to work fine.

is this a bug or maybe im trying something here that isnt supposed to work
with ob_gzhandler anyway??

==============================================
configure command:
----------------------------------------
'./configure' '--with-apxs' '--with-xml' '--with-zlib'
'--with-mysql=/usr' '--enable-track-vars'
----------------------------------------
-- 
Edit bug report at: http://bugs.php.net/?id=12318&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to