From: brandonskypimenta at gmail dot com Operating system: Mac OS X PHP version: Irrelevant Package: Performance problem Bug Type: Bug Bug description:PHP treated as HTML
Description: ------------ When running a script that is external (including it into another PHP file) opening that file will result in that external PHP being rendered as HTML text on the screen. Test script: --------------- (This is not a test script. It is an attempt to make a MediaWiki extension.) $wgExtensionCredits['validextensionclass'][] = array( 'path' => __FILE__, 'name' => 'Vote Pages', 'url' => 'https://www.mediawiki.org/wiki/Extension:VotePage', 'description' => 'Allows unregistered and registered users to vote pages', 'version' => 1.0, ); $rate = '<iframe frameborder="0" src="rate.html" height="91">' return $rate; Expected result: ---------------- The external PHP script should have ran. Actual result: -------------- It displays the code and any HTML that has been used in the external PHP file will be displayed instead. -- Edit bug report at https://bugs.php.net/bug.php?id=62636&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62636&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62636&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62636&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62636&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62636&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62636&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62636&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62636&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62636&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62636&r=support Expected behavior: https://bugs.php.net/fix.php?id=62636&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62636&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62636&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62636&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62636&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62636&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62636&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62636&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62636&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62636&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62636&r=mysqlcfg