From:             [EMAIL PROTECTED]
Operating system: WinME
PHP version:      4.0.4
PHP Bug Type:     Scripting Engine problem
Bug description:  require function generates error

in the documentation the following is noted:

require() is not actually a function in PHP; rather, it is a language construct. It is 
subject to some different rules than functions are. For instance, require() is not 
subject to any containing control structures.

I have found this statement ("not subject to any containing control structures") to 
NOT be true.  I get an error for the following:

class myclass()

I want to be able to include a function from another file that will become a method 
for the class.

Any suggestions?

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to