2010年1月17日星期日

[fw-mvc] Little trouble with Zend Framework 1.10.0

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

没有评论: