From: michael at mompopmedia dot com Operating system: redhat 9 PHP version: 5.0.0RC2 PHP Bug Type: Output Control Bug description: unparsed code dumped
Description: ------------ When I change a script, php parses and output the expected results, but also outputs unparsed code. The unparsed code that gets outputed to the browser is either a portion of the code from the current script, or (strangely) a portion of the code from a previously saved version of the script. My build is as follows: System Linux kc.node1.com 2.4.20-30.9smp #1 SMP Wed Feb 4 20:36:46 EST 2004 i686 Build Date Apr 29 2004 15:32:32 Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--enable-wddx' '--with-xmlrpc' '--with-zlib' '--enable-simplexml' '--enable-soap' Server API Apache Virtual Directory Support disabled Configuration File (php.ini) Path /usr/local/lib/php.ini PHP API 20031224 PHP Extension 20040412 Zend Extension 220040412 Debug Build no Thread Safety disabled IPv6 Support enabled Registered PHP Streams php, file, http, ftp, compress.zlib, https, ftps Registered Stream Socket Transports tcp, udp, unix, udg, ssl, tls Server Version: Apache/1.3.29 (Unix) PHP/5.0.0RC2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2634 mod_ssl/2.8.16 OpenSSL/0.9.7a Server Built: Apr 29 2004 14:52:49 Reproduce code: --------------- code was: <?php set_include_path('/home/vendors/ims_gateway/lib:'.get_include_path()); include('XML/RPC/Server.php'); function server($msg) { include('Var_Dump.php'); $dump = new Var_Dump(); $out = $dump->r_display($msg); file_put_contents('server.html', $out); return new XML_RPC_Response(true); } $map = array("server" => array("function" => 'server', "signature" => array(array("int", "string", "string")), "docstring" => "Some docs")); $server = new XML_RPC_Server($map); ?> then changed to: <?php phpinfo(); ?> Expected result: ---------------- regular phpinfo() output Actual result: -------------- ... lots of phpinfo() output followed by unparsed garbage .... </tbody></table><br> </div>th('/home/vendors/ims_gateway/lib:'.get_include_path()); include('XML/RPC/Server.php'); function server($msg) { include('Var_Dump.php'); $dump = new Var_Dump(); $out = $dump->r_display($msg); file_put_contents('server.html', $out); return new XML_RPC_Response(true); } $map = array("server" => array("function" => 'server', "signature" => array(array("int", "string", "string")), "docstring" => "Some docs")); $server = new XML_RPC_Server($map); ?></body></html> -- Edit bug report at http://bugs.php.net/?id=28440&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28440&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28440&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28440&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28440&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28440&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28440&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28440&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28440&r=support Expected behavior: http://bugs.php.net/fix.php?id=28440&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28440&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28440&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28440&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28440&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28440&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28440&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28440&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28440&r=float