PHP 4.0 Bug #5299: fputs() doesn't use file pointer (fopen()) if it is contained within ""

From: Date: Sat, 01 Jul 2000 03:01:04 +0000
Subject: PHP 4.0 Bug #5299: fputs() doesn't use file pointer (fopen()) if it is contained within ""
Groups: php.dev 
Request: Send a blank email to php-dev+get-22999@lists.php.net to get a copy of this message
From: kyledrake@usinternet.com Operating system: Linux 2.2 PHP version: 4.0 Release Candidate 1 PHP Bug Type: Misbehaving function Bug description: fputs() doesn't use file pointer (fopen()) if it is contained within "" a compatibility issue: when pointers to a file (ex. $file = fopen("file", "a"); ) are used in function fputs using quotes, like so: fputs("$file", "Text blah blah"); it does not do the function and tells you it is an invalid file pointer. this would work with no problems in the 3.X releases. the simple fix is to remove the quotes, and then it works fine. I do not know if this problem exists beyond fputs()..

« previous php.dev (#22999) next »