PHP 4.0 Bug #7413 Updated: Odd behavior

From: Date: Tue, 24 Oct 2000 16:00:47 +0000
Subject: PHP 4.0 Bug #7413 Updated: Odd behavior
Groups: php.dev 
Request: Send a blank email to php-dev+get-35972@lists.php.net to get a copy of this message
ID: 7413 User Update by: ignacio@openservices.net Status: Feedback Bug Type: Unknown/Other Function Description: Odd behavior I put in ":set fileformat=unix" and saved it. Result: Nada. Same old same old. Previous Comments: --------------------------------------------------------------------------- [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

« previous php.dev (#35972) next »