From: mbiama at angosso dot com Operating system: Ubuntu/linux/Apache/php PHP version: 5.5.3 Package: Apache2 related Bug Type: Bug Bug description:root files cpanel
Description: ------------ <?php include 'http://www.exemple.com/file.php/.?root=1&bar=2'; $root = 1; $bar = 2; $(function() { $root = include 'return.php'; echo $root; // prints 'PHP' $bar = include 'noreturn.php'; echo $bar; // prints 1 $string = get_include_contents('somefile.php'); ? Expected result: ---------------- <?php include 'http://www.nav.com/file.php/./?root=1&bar=2'; $root = 1; $bar = 2; $(function() { $("#wb_element_instance599").children("ul").children().each(function() { if ($(this).children("ul").size() == 0) return; $(this).hover(function() { $(this).children("ul").css({display: "block"}); }, function() { $(this).children("ul").css({display: "none"}); }); }); }); include 'file.txt'; // id="wb_element_instance601" class="wb_element"; include 'file.php'; // ul class="hmenu"; <?php include dirname(__FILES__).'/uk.zyro/<li class='active'><a href='HOME/' target='_self' title='HOME'>HOME</a></li>'; ?> <?php include dirname(__FILES__).'/uk.zyro/<li class='active'><a href='ROOMS/' target='_self' title='ROOMS'>ROOMS</a></li>'; <?php include dirname(__FILES__).'/uk.zyro/<li class='active'><a href='RESERVATIONS/' target='_self' title='RESERVATIONS'>RESERVATIONS</a></li>'; ?> <?php include dirname(__FILES__).'/uk.zyro/<li class='active'><a href='CONTACTS/' target='_self' title='CONTACTS'>CONTACTS</a></li>'; ?> <?php include dirname(__FILES__).'/uk.zyro/<li class='active'><a href='SITEMAP/' target='_self' title='SITEMAP'>SITEMAP</a></li>'; ?> <?php include dirname(__FILES__).'/uk.zyro/<li class='active'><a href='AFFILIATE/' target='_self' title='AFFILIATE'>AFFILIATE</a></li>'; ?> <?php include dirname(__FILES__).'/uk.zyro/<li class='active'><a href='MEDIAS/' target='_self' title='MEDIAS'>MEDIAS</a></li>'; ?> if ((include 'vars.php') == 'OK') { echo 'OK'; } $root = include 'return.php'; echo $root; // prints 'PHP' $bar = include 'noreturn.php'; echo $bar; // prints 1 $string = get_include_contents('somefile.php'); function get_include_contents($filename) { if (is_file($filename)) { ob_start(); include $filename; return ob_get_clean(); } return false; } ?> -- Edit bug report at https://bugs.php.net/bug.php?id=65662&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65662&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65662&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65662&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65662&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65662&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65662&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65662&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65662&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65662&r=support Expected behavior: https://bugs.php.net/fix.php?id=65662&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65662&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65662&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65662&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65662&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65662&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65662&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65662&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65662&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65662&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65662&r=mysqlcfg