ID:               20215
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: Windows 2000
-PHP Version:      4.2.3
+PHP Version:      4.3RC1
 New Comment:

I meet the problem with - Windows 2000 Pro SP3 (FAT32) - Apache 1.3.27
- PHP 4.3RC1 *with php.ini-recommended*
(http://www.serveurperso.com/php.ini)
This small script bug (mini notepad for admin-zone...)
http://www.serveurperso.com/temp/fputs.php
! The bug with PhpMyExplorer text file editor is the same.
Is it can be an Apache problem in the interpretation of the form?


Previous Comments:
------------------------------------------------------------------------

[2002-11-16 17:08:53] [EMAIL PROTECTED]

I can't reproduce the problem using PHP 4.3RC1 or the slightly more up
to date PHP 4.3 development branch and
the script that you provided, either under win XP with IIS
or linux.

I'm using php.ini-recommended, so please make sure that
you don't have any zany settings turned on in your php.ini or server
configuration.


------------------------------------------------------------------------

[2002-11-16 06:22:55] [EMAIL PROTECTED]

The last PHP CVS snapshot (Win32) doesn't correct the bug  
Demo/Source :
http://www.serveurperso.com/temp/fputs.php
The function always adds some incorrects CRLF.

------------------------------------------------------------------------

[2002-11-16 01:12:37] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2002-11-01 16:16:31] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



------------------------------------------------------------------------

[2002-11-01 16:05:39] [EMAIL PROTECTED]

To every writings the function "fput" adds jumps of lines in too much.

Sample script :
------------------------------------------------
<FORM ACTION = "?save=1" METHOD = "post">
 <TEXTAREA NAME = "contenu" ROWS="10" COLS="40">
<?
 $fichier = "fichier.txt";
 if($save) {
  $fp = fopen($fichier, "w");
  fputs($fp, stripslashes($contenu));
  fclose($fp);
 }
 readfile($fichier);
?>
 </TEXTAREA><BR>
 <INPUT TYPE = "submit" VALUE = "Enregistrer">
</FORM>
------------------------------------------------

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20215&edit=1

Reply via email to