PHP 4.0 Bug #7413 Updated: Odd behavior

From: Date: Mon, 27 Nov 2000 15:02:12 +0000
Subject: PHP 4.0 Bug #7413 Updated: Odd behavior
Groups: php.dev 
Request: Send a blank email to php-dev+get-39281@lists.php.net to get a copy of this message
ID: 7413 Updated by: sniper Reported By: ignacio@openservices.net Status: Feedback Bug Type: Unknown/Other Function Assigned To: Comments: Is this still happening with latest snapshot? --Jani 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

« previous php.dev (#39281) next »