[phpa] Re: Return of 'Class error'.
- From: "Jon Frisby" <jfrisby@xxxxxxxxxxxxxxxx>
- To: <phpa@xxxxxxxxxxxxx>
- Date: Wed, 27 Feb 2002 15:23:40 -0800
Unfortunately I do my development on Windows. I discovered this issue in
our production environment(!), and I can't afford to re-enable PHPA in
production at the moment...
I'm attaching a file that includes:
-easyorm.inc (The EasyORM runtime -- this is the version from our production
environment.)
-log.inc, referral.inc (EasyORM-generated classes -- straight out of
production.)
-schema.sql (A subset of our schema definition, to support
log.inc/referral.inc)
-main.inc (A contrived include file that should hopefully illustrate the
condition...)
-control.php/error.php (Pages that should hopefully illustrate the
condition...)
Prerequisites:
-You must have MySQL handy, preferrably with InnoDB tables but that
shouldn't be a requirement.
-Edit easyorm.inc: On line 27 change the host/user/password to something
appropriate.
-The included EasyORM-generated files -- log.inc, referral.inc -- are *not*
the same as the ones used in the production environment but being
auto-generated from the same template they should produce the desired
effect. I didn't include the ones actually mentioned in our production
environment because those have other interdependencies that would result in
my having to send you a rather large archive...
-JF
> -----Original Message-----
> From: phpa-bounce@xxxxxxxxxxxxx [mailto:phpa-bounce@xxxxxxxxxxxxx]On
> Behalf Of Nick Lindridge
> Sent: Wednesday, February 27, 2002 2:40 PM
> To: phpa@xxxxxxxxxxxxx
> Subject: [phpa] Re: Return of 'Class error'.
>
>
>
> Hi,
>
> You seem to have determined the scenario that causes the problem. Can you
> put together and send me a bundle of files that illustrate the
> problem. If I
> can reproduce it with those then I should be able to fix it.
>
> Nick
>
>
> >
> > I just attempted to install and run PHPA, but encountered a problem.
> > (Linux 2.4.3, glibc 2.2.2, PHP 4.0.6, Apache 1.3.19)
> >
> > On one (and only one) page, I get the following error:
> >
> > [Wed Feb 27 14:48:24 2002] [error] PHP Fatal error: Cannot
> > instantiate
> > non-existent class: offer in /var/www/yfdvds/offer.inc on line 376
> >
> > All classes exist in their own .inc file, and are include_once'd. The
> > class exists, and is in fact used successfully by numerous other pages.
> > The only difference is that in most pages there are several other
> > include_once's that happen before offer.inc is included -- and one file
> > that offer.inc include_once's is included by these other files.
> >
> > To put it more clearly:
> > Most pages begin with:
> > include_once('main.inc');
> > Somewhere in main.inc is:
> > include_once('user.inc');
> > At the top of both user.inc and offer.inc is:
> > include_once('easyorm.inc');
> >
> > So basically easyorm.inc gets included earlier on in every other page,
> > but not in this one. That file declares the base class that offer
> > inherits from...
> >
> > Any idea what's going on?
>
>
> ------------------------------------------------------------------------
> www.php-accelerator.co.uk Home of the free PHP Accelerator
>
> To post, send email to phpa@xxxxxxxxxxxxx
> To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe
>
>
>
-- Binary/unsupported file stripped by Ecartis --
-- Type: application/x-zip-compressed
-- File: testcase.zip
------------------------------------------------------------------------
www.php-accelerator.co.uk Home of the free PHP Accelerator
To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe
- Follow-Ups:
- [phpa] Re: Return of 'Class error'.
- From: Jon Frisby
- References:
- [phpa] Re: Return of 'Class error'.
- From: Nick Lindridge
Other related posts:
- » [phpa] Return of "Class error".
- » [phpa] Re: Return of 'Class error'.
- » [phpa] Re: Return of 'Class error'.
- » [phpa] Re: Return of 'Class error'.
- » [phpa] Re: Return of "Class error".
- [phpa] Re: Return of 'Class error'.
- From: Jon Frisby
- [phpa] Re: Return of 'Class error'.
- From: Nick Lindridge