From:             [EMAIL PROTECTED]
Operating system: Win32
PHP version:      4.0.4pl1
PHP Bug Type:     Unknown/Other Function
Bug description:  printint chr(0x0a) in a file generate 0x0d 0x0a

look at the following code :

  $s = chr(0x0a);
  print strlen($s);
  $fp =fopen("test.txt","w");

the output on screen is 1(strlen($s)) but in my file, i get always 0x0d 0x0a.
With Unix, i get only 0x0a in my file.

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to