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

From: Date: Wed, 16 Jul 2003 21:29:13 +0000
Subject: #24475 [Asn->Csd]: HTML.tpl is written with short_tag
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18320@lists.php.net to get a copy of this message
ID: 24475 Updated by: cain@php.net Reported By: akimoto at share360 dot com -Status: Assigned +Status: Closed Bug Type: PEAR related Operating System: Windows XP PHP Version: 4.3.3RC1 Assigned To: cain New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. 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 (#18320) next »