PHP 4.0 Bug #4751: fopen within if is not executed

From: Date: Thu, 01 Jun 2000 10:30:17 +0000
Subject: PHP 4.0 Bug #4751: fopen within if is not executed
Groups: php.dev 
Request: Send a blank email to php-dev+get-19946@lists.php.net to get a copy of this message
From: s.frings@edvfrings.de Operating system: Linux PHP version: 4.0.0 Release PHP Bug Type: Misbehaving function Bug description: fopen within if is not executed I tried to open two files and check if both were opened: if ($source=fopen("data.txt","r") && $dest=fopen("data.tmp","w")) { do something; } This worked fine in PHP3. The destination file will be opened but the source file not. If I try to use the variable $source for a read command I get an error message that this is not a file handle.

« previous php.dev (#19946) next »