#24475 [NEW]: HTML.tpl is written with short_tag
| From: | akimoto at share360 dot com | Date: | Thu, 03 Jul 2003 09:34:26 +0000 |
| Subject: | #24475 [NEW]: HTML.tpl is written with short_tag | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-17947@lists.php.net to get a copy of this message | ||
From: akimoto at share360 dot com
Operating system: Windows XP
PHP version: 4.3.3RC1
PHP Bug Type: PEAR related
Bug description: HTML.tpl is written with short_tag
Description:
------------
When using PEAR::PHPUnit with GUI mode, it seems to use
PHPUnit/GUI/HTML.tpl as a template.
In this template, all PHP tags used are short-type tags (like <?, <?=). So
when php.ini prohibits short_tag, it shows error code.
as short_open_tag is not PHP_INI_ALL, in some environment where you may
not edit php.ini nor httpd.conf, you can not work around this by changing
allowed tags settings.
Most of case it may be acceptable as when you do unit-testing you have
control your web server and PHP. But still it is good if the HTML.tpl has
long tag (<?php, and <?php echo) which works on all environment. Then you
may run PHPUnit tests on the exactly same environment as your deployment
server.
Thank you
Reproduce code:
---------------
in php.ini,
short_open_tag = off
and run PHPUnit/GUI/HTML.php
Expected result:
----------------
Test page is shown up correctly.
Actual result:
--------------
in such environment, short tags are not recognized as PHP script, so
output of PEAR::PHPUnit/GUI/HTML is corrupted.
--
Edit bug report at http://bugs.php.net/?id=24475&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24475&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24475&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24475&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24475&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24475&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24475&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24475&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24475&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24475&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24475&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24475&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24475&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24475&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24475&r=gnused