Thanks, Thomas, for your reply. On Fri, Mar 7, 2008 at 3:53 AM, Thomas Koch <[EMAIL PROTECTED]> wrote:
> Am Freitag 07 März 2008 03:05:31 schrieb Dan Lipsitt: > > Hi, > > > > I've installed ezComponents on Fedora 8 using PEAR. > > > > I'm including the bootstrap file like this: > > > > <?php > > require_once 'ezc/Base/ezc_bootstrap.php'; > > ?> > > > > When I try to instantiate any component, I get this error: > > > > PHP Fatal error: Class 'ezcBaseRepositoryDirectory' not found in > > /usr/share/pear/ezc/Base/base.php on line 440 > > > > I was able to get rid of this error by adding some more requires: > > > > <?php > > require_once 'ezc/Base/struct.php'; > > require_once 'ezc/Base/structs/repository_directory.php'; > > require_once 'ezc/Base/ezc_bootstrap.php'; > > ?> > > > > But then I still get "PHP Fatal error: Class 'ezcMailImapTransport' not > > found." > > > > Any idea what's going wrong? > > > > Thanks, > > Dan > > Dear Dan, > > I'm sorry, but I can't reproduce your error. The following code works fine > for > me and with the most recent ezc via pear: > #!/usr/bin/env php5 > <?php > echo 'PHP Version: '.phpversion()."\n"; > require_once 'ezc/Base/ezc_bootstrap.php'; > var_dump( class_exists( 'ezcBaseRepositoryDirectory' ) ); > var_dump( class_exists( 'ezcMailImapTransport' ) ); > > output: > PHP Version: 5.2.5-2 > bool(true) > bool(true) > > Could you please your environment against the requirements at > http://ezcomponents.org/overview/requirements > > If you still encounter problems please post the output of phpinfo() on > your > development system. > I found out that the problem only occurs when I try to include my script during an interactive session started with 'php -a'. I don't have the include problems when I run the script directly on the commandline. Unfortunately I now have a different problem: PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 31981542 bytes) in /usr/share/pear/ezc/Mail/parser/parts/text_parser.php on line 68 This happens during a call to parseMail(). I know 32MB is a relatively small amount, but I am trying to parse a 1.5KB file, so I don't know why it is trying to allocate 30MB of memory. > > Dan is a Romanian name. Esti din Romania? > No, in my case it's short for Daniel. Thanks, Dan
-- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
