#18741 [Bgs->Opn]: chop() - not working in 4.2.2

From: Date: Mon, 05 Aug 2002 11:47:58 +0000
Subject: #18741 [Bgs->Opn]: chop() - not working in 4.2.2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16009@lists.php.net to get a copy of this message
ID: 18741 User updated by: kodi_169@tlen.pl Reported By: kodi_169@tlen.pl -Status: Bogus +Status: Open Bug Type: Scripting Engine problem Operating System: Windows ME PL ver. 4.90.3000 PHP Version: 4.2.2 New Comment: <html> <?PHP $aaa = fopen("asd.txt","r+"); $bbb = fopen("qwe.txt","w+"); while(!feof($aaa)) { $linia = fgets($aaa); fwrite($bbb,"$linia"); echo "$linia"; } fclose($aaa); fclose($bbb); $aaa = fopen("asd.txt","w+"); $bbb = fopen("qwe.txt","r"); $nla = "nowa linia w pliku"; $nla = chop($nla); fwrite($aaa,"$nla"); while(!feof($bbb)) { $linia = fgets($bbb); fwrite($aaa,"$linia"); echo "$linia"; } ?> </html> Previous Comments: ------------------------------------------------------------------------ [2002-08-05 07:44:44] cynic@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. cannot reproduce, can you please provide a complete script with its actual output? ------------------------------------------------------------------------ [2002-08-05 07:34:46] kodi_169@tlen.pl the chop() command doesn't work. it worked good in 4.1.2, but now on 4.2.2 it just doesn't. i'm using APACHE 2.0.39 and 1.3.26 - it occurs in both versions. this has worked in 4.1.2: $nla = chop($nla); regards, gemini ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18741&edit=1

« previous php.bugs (#16009) next »