PHP 4.0 Bug #7413 Updated: Odd behavior
| From: | sniper@php.net | Date: | Sun, 31 Dec 2000 01:16:43 +0000 |
| Subject: | PHP 4.0 Bug #7413 Updated: Odd behavior | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42692@lists.php.net to get a copy of this message | ||
ID: 7413
Updated by: sniper
Reported By: ignacio@openservices.net
Old-Status: Feedback
Status: Closed
Bug Type: Unknown/Other Function
Assigned To:
Comments:
Previous Comments:
---------------------------------------------------------------------------
[2000-10-24 12:00:47] ignacio@openservices.net
I put in ":set fileformat=unix" and saved it.
Result: Nada. Same old same old.
---------------------------------------------------------------------------
[2000-10-24 08:00:42] lyric@php.net
My latest CVS produces :
"""
<script src="menu.js">
<!--
//-->
</script>
"""
Your problem is possibly related to DOS/Win carriage-returns & line feeds. Try saving your file
in "unix mode" before putting on the (unix?) web-server.
---------------------------------------------------------------------------
[2000-10-24 08:00:35] lyric@php.net
My latest CVS produces :
"""
<script src="menu.js">
<!--
//-->
</script>
"""
Your problem is possibly related to DOS/Win carriage-returns & line feeds. Try saving your file
in "unix mode" before putting on the (unix?) web-server.
---------------------------------------------------------------------------
[2000-10-23 12:04:36] ignacio@openservices.net
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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7413