[PHP4BETA] - Strange problem including a PHP file which just contains a class definition

From: Date: Tue, 28 Sep 1999 13:09:11 +0000
Subject: [PHP4BETA] - Strange problem including a PHP file which just contains a class definition
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-4983@lists.php.net to get a copy of this message
Hi, I have a strange problem here... If I include/require a file, say cBarDef.php which contains the following (with no leading or trailing CR/LF etc <?php class cBar { // Vars n Methods for cBar here } ?> PHP seems to just bomb out.. no error message - nothing.. However.. if I make this pointless change it works fine! <?php if(1==1) { class cBar { // Vars n Methods for cBar here } } ?> Is this a bug or is it me missing something? Regards, Matthew Clark. -- NetDespatch Ltd. http://www.despatch.net

« previous php.version4 (#4983) next »