#24475 [Opn->Asn]: HTML.tpl is written with short_tag

From: Date: Wed, 09 Jul 2003 11:11:48 +0000
Subject: #24475 [Opn->Asn]: HTML.tpl is written with short_tag
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18096@lists.php.net to get a copy of this message
ID: 24475 Updated by: lsmith@php.net Reported By: akimoto at share360 dot com -Status: Open +Status: Assigned Bug Type: PEAR related Operating System: Windows XP PHP Version: 4.3.3RC1 -Assigned To: +Assigned To: sebastian Previous Comments: ------------------------------------------------------------------------ [2003-07-03 04:34:26] akimoto at share360 dot com 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 this bug report at http://bugs.php.net/?id=24475&edit=1

« previous php.pear.dev (#18096) next »