On 28/08/07, Bruno Lustosa <[EMAIL PROTECTED]> wrote:
>
>
> On 8/28/07, Phill Sparks <[EMAIL PROTECTED]> wrote:
> > I'm experiencing a strange problem which I cannot track down. On one
> > server the following script runs as expected catching the Exception
> > and print_r'ing it, however on a different server the Exception is
> > never caught and instead a Fatal Error is being raised.
>
> What are the exact PHP versions on each server. Also, can you post the
> actual fatal error being raised?
> I tried your code, and it works as it should, print_r'ing the Exception.
>
The working server is running 5.2.3-pl3-gentoo (php api: 20041225, php
extension: 20060613) and the less-working server is running 5.2.2 (php
api: 20041225, php extension: 20060613).
The exact error is as follows:
[28-Aug-2007 20:57:53] PHP Fatal error: Uncaught exception
'Exception' with message 'Ooops!' in
/var/www/localhost/cp/includes/custom/cp_exception.php:4
Stack trace:
#0 /var/www/localhost/cp/includes/cp_element_custom.php(38): include()
#1 /var/www/localhost/cp/includes/blockrender.lib.php(405):
include('/var/www/localh...')
#2 /var/www/localhost/cp/index.php(264): make_block('32', '2689',
'301330', '301330', '949', 1, true)
#3 /var/www/localhost/cp/urlparse.php(12): include('/var/www/localh...')
#4 {main}
thrown in /var/www/localhost/cp/includes/custom/cp_exception.php on line 4
I think tomorrow I'll be comparing the phpinfo() output line by line
to see if I can spot any differences, but any suggestions would be
most welcome.
Phill "Milkman" Sparks
http://milk-hub.net