From: [EMAIL PROTECTED] Operating system: Windows 2000 Advanced Server PHP version: 4.1.2 PHP Bug Type: Scripting Engine problem Bug description: Templating through PHP with .html files fails
I made a site under PHP 4.1.1 using the built-in PHP templating funtions through the use of the Alternative Control Structures. All my PHP code is in several .php files, all text of the website is in template/xxx.html format, including the alternative control structures and pure HTML syntax. At the end of the PHP page, i call the template HTML file with a require("template/xxx.html");. In PHP 4.1.1, this displays the page correctly. In PHP 4.1.2, the page loads untill it gets at the first PHP funtion in the template, being <? if ($extra_links): ?>. The standard variable parsing DOES work, as there's already a call to <?=$foto?> that gets parsed. I've reloaded PHP 4.1.1, and now the site in question works again like it should. No code been altered since the first installation of PHP 4.1.2. The sole need for PHP on this page is this templating, depending on which section of the site ppl visit, it loads a different main section of the site with a different menu. On a Linux system this problem doesn't exist. regards, Adriaan Van Bauwel -- Edit bug report at http://bugs.php.net/?id=16219&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16219&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16219&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16219&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16219&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16219&r=support Expected behavior: http://bugs.php.net/fix.php?id=16219&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16219&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16219&r=submittedtwice