Bug #13802 Updated: Typo in require() statement description ?

From: Date: Tue, 23 Oct 2001 18:35:44 +0000
Subject: Bug #13802 Updated: Typo in require() statement description ?
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-68869@lists.php.net to get a copy of this message
ID: 13802 Updated by: sander Reported By: robert.w@12move.nl Old Status: Open Status: Bogus Bug Type: Documentation problem Operating System: PHP Version: 4.0.6 New Comment: It is correct the way it is. Previous Comments: ------------------------------------------------------------------------ [2001-10-23 14:21:19] robert.w@12move.nl Quoting the fifth paragraph of the English language version: "Unlike include(), require() will always read in the target file, even if the line it's on never executes. If you want to conditionally include a file, use include(). The conditional statement won't affect the require(). However, if the line on which the require() occurs is not executed, neither will any of the code in the target file be executed." I think the last line is contradicting the first line : FIRST LINE : "...require() will always read in the target file, even if the line it's on never executes." LAST LINE : "However, if the line on which the require() occurs is not executed, neither will any of the code in the target file be executed." This the same in the Dutch language version. IMHO the last line should read : "However, if the line on which the include() occurs is not executed, neither will any of the code in the target file be executed." Robert Waarde ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13802&edit=1

« previous php.dev (#68869) next »