Bug #12318 Updated: ob_gzhandler screws-up included .js files
| From: | sander@php.net | Date: | Fri, 19 Oct 2001 15:02:53 +0000 |
| Subject: | Bug #12318 Updated: ob_gzhandler screws-up included .js files | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-68411@lists.php.net to get a copy of this message | ||
ID: 12318
Updated by: sander
Reported By: gilux@xs4all.nl
Old Status: Open
Status: Bogus
Bug Type: Output Control
Operating System: redhat 6.2
PHP Version: 4.0.6
New Comment:
Your browser obviously can't handle compressed js-files. Not a bug in PHP.
Previous Comments:
------------------------------------------------------------------------
[2001-07-23 09:38:31] gilux@xs4all.nl
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 this bug report at http://bugs.php.net/?id=12318&edit=1