Bug #17898: PHP path shown on browser

From: Date: Fri, 21 Jun 2002 14:40:18 +0000
Subject: Bug #17898: PHP path shown on browser
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11677@lists.php.net to get a copy of this message
From: tyknight@writeme.com Operating system: Linux 2.4.17 PHP version: 4.2.0 PHP Bug Type: Output Control Bug description: PHP path shown on browser i run php as a CGI binary. I found that if i use "require" to import another php file, "#!/usr/local/bin/php" appears in the browser. For example : Case I ---------------------------- #!/usr/local/bin/php <? print "Hello World"; ?> ----------------------------- It works fine. Case II ---- index.php ------------------ #!/usr/local/bin/php <?php echo "Hello World!"; require("config.php"); echo "Hello World?"; ?> ----- config.php --------------------- #!/usr/local/bin/php <?php echo "In configure file"; ..... ?> ----------------------------------- The result is Hello World! #!/usr/local/bin/php In configure file Hello World? -- Edit bug report at http://bugs.php.net/?id=17898&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17898&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17898&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17898&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17898&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17898&r=support Expected behavior: http://bugs.php.net/fix.php?id=17898&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17898&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17898&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17898&r=globals

« previous php.bugs (#11677) next »