2010年1月18日星期一

RE: [fw-mvc] Little trouble with Zend Framework 1.10.0

Hi,

Try to use require_once();


Alvar


-----Original Message-----
From: Matthew Weier O'Phinney [mailto:matthew@zend.com]
Sent: Sunday, January 17, 2010 11:56 PM
To: fw-mvc@lists.zend.com
Subject: Re: [fw-mvc] Little trouble with Zend Framework 1.10.0

Marcel --

Please respond to the query I sent in fw-general; I need more
information from you in order to debug this.

-- Marcel Alburg <m.alburg@weeaar.com> wrote
(on Sunday, 17 January 2010, 10:43 PM +0100):
> Hello,
>
> i try the new and the old version from 1.10 and have the same error in the
class Zend_Exception.
>
> If i include/require the the class Zend/Exception.php i get the error:
>
> php test.php
>
> Fatal error: Cannot redeclare class Zend_Exception in /tmp/Exception.php
on line 28
>
> Call Stack:
> 0.0020 90968 1. {main}() /tmp/test.php:0
> 0.0033 125432 2. require_once('/tmp/Exception.php')
/tmp/test.php:2
>
>
> The File:
>
> <?php
> require_once 'Exception.php';
>
> My PHP Version is: 5.2.6-1+lenny4
>
>
> If i remove the else section in the Exception.php it works correctly and
the first section is load because my php version is lower than 5.3.0.
>
> thanks
>
> Marcel
> --
> Weeaar
> Web- und Softwareentwicklung
>
> http://www.weeaar.com/
>
> Tel: +49 (0)30 2089 6809
> Mail: m.alburg@weeaar.com
>
> SteuerID: 049 / 200 / 00385
> Inhaber: Marcel Alburg
> -------
>
>
>
>
>
> www.beatboat.de - Dein Musikpreisvergleich
> Nominiert für den Onlinestar 2009
>
>

--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

没有评论: