Re: analysis of bug #5157 - should be closed

From: Date: Tue, 27 Jun 2000 10:24:14 +0000
Subject: Re: analysis of bug #5157 - should be closed
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-22444@lists.php.net to get a copy of this message
w>> I think the documentation is right in here. On page.php the class *has w>> to* be included before session_register() (I think), while it does not w>> matter in index.php. w>> Using require() on page.php will do this for your (though it╢s place is w>> after session_register() but it will be declared before using require) The problem is that documentation never mentions funcdamental difference between include() and require() - the latter is parsed before any code is executed, and the former is parsed only when control reaches incldue() statement (this is breiefly mentioned, but not clearly enough). w>> As I remember classes need to be included before session_register() to w>> get access to an objects methods back Yes, but the cause of this is the above, and documentation fails to explain this clearly enough. The proof is that we get constant complaint on "why my objects don't work with sessions". -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#22444) next »