PHP 4.0 Bug #7413 Updated: Odd behavior

From: Date: Tue, 24 Oct 2000 12:00:42 +0000
Subject: PHP 4.0 Bug #7413 Updated: Odd behavior
Groups: php.dev 
Request: Send a blank email to php-dev+get-35988@lists.php.net to get a copy of this message
ID: 7413 Updated by: lyric Reported By: ignacio@openservices.net Status: Feedback Bug Type: Unknown/Other Function Assigned To: Comments: 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. Previous Comments: --------------------------------------------------------------------------- [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

« previous php.dev (#35988) next »