php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18059 Strange output of contents of JS-script
Submitted: 2002-06-29 05:32 UTC Modified: 2002-06-29 10:57 UTC
From: vitya at viking-motors dot com dot ua Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.1.2 OS: FreeBSD 4.5-RC
Private report: No CVE-ID: None
 [2002-06-29 05:32 UTC] vitya at viking-motors dot com dot ua
My code:
-------------
<script language=javascript>
function img_view(url, w, h, t) 
{
imagewin = window.open("","_blank","width="+w+",height="+h);
imagewin.document.write('bla-bla-bla');
}
</script>
--------------
I got this after php's work:
---------------
<script language=javascript>
function img_view(url, w, h, t) 
{
imagewin = new Object()                                    ;
imagewin.document.write('bla-bla-bla');
}
</script>
--------------------------
So, question is why php changed
imagewin = window.open("","_blank","width="+w+",height="+h);
with
imagewin = new Object()                                    ;
???

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-29 05:41 UTC] vitya at viking-motors dot com dot ua
My email: vitya@viking-motors.com.ua
 [2002-06-29 10:57 UTC] sniper@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 09:01:29 2024 UTC