PHP 4.0 Bug #7413: Odd behavior
| From: | ignacio at openservices dot net | Date: | Mon, 23 Oct 2000 16:04:36 +0000 |
| Subject: | PHP 4.0 Bug #7413: Odd behavior | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35975@lists.php.net to get a copy of this message | ||
From: ignacio@openservices.net
Operating system: Red Hat Linux 6.2/7.0
PHP version: 4.0.1pl2
PHP Bug Type: Unknown/Other Function
Bug description: Odd behavior
Not so much a problem as a quirk.
Code:
"""
<?php
$jssrc="menu.js";
if (isset($jssrc))
{ ?>
<script src="<?=$jssrc?>">
<!--
//-->
</script>
<?php
};
?>
"""
Output:
"""
<script src="menu.js">
<!--
//-->
</script>
"""
Notice the extra nl's. Also, could somebody verify that this quirk still exists in later
versions of PHP? I'm still having trouble building any of them, but don't worry about
that. Thanks.
--
Edit Bug report at: http://bugs.php.net/?id=7413&edit=1