Bug #18059: Strange output of contents of JS-script

From: Date: Sat, 29 Jun 2002 09:32:07 +0000
Subject: Bug #18059: Strange output of contents of JS-script
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12510@lists.php.net to get a copy of this message
From: vitya@vikng-motors.com.ua Operating system: FreeBSD 4.5-RC PHP version: 4.1.2 PHP Bug Type: Output Control Bug description: Strange output of contents of JS-script 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() ; ??? -- Edit bug report at http://bugs.php.net/?id=18059&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18059&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18059&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18059&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18059&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18059&r=support Expected behavior: http://bugs.php.net/fix.php?id=18059&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18059&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18059&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18059&r=globals

« previous php.bugs (#12510) next »