6.0.0-beta1
7/8/25

[#10591] class ErrorException missing
Summary class ErrorException missing
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester michael (at) bigmichi1 (dot) de
Created 09/30/2011 (5030 days ago)
Due
Updated 10/03/2011 (5027 days ago)
Assigned
Resolved 09/30/2011 (5030 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/03/2011 05:37:17 PM Jan Schneider Comment #4 Reply to this comment
my error message. perhaps you can test my testcase to see the actual 
result. the permission i set wrong was file owned by root:root and 
only had read permission for user and group when my webserver is 
running with user www-data:www-data
Gets me a correct exception.
09/30/2011 06:51:29 PM michael (at) bigmichi1 (dot) de Comment #3 Reply to this comment
when i create a sample test case:

<?php
throw new ErrorException("hallo");
?>

i got:


PHP Fatal error:  Uncaught exception 'ErrorException' with message 
'hallo' in -:2
Stack trace:
#0 {main}
   thrown in - on line 2


but when it is called inside horde the class can't be found like in my 
error message. perhaps you can test my testcase to see the actual 
result. the permission i set wrong was file owned by root:root and 
only had read permission for user and group when my webserver is 
running with user www-data:www-data
09/30/2011 06:38:06 PM Michael Slusarz Comment #2
State ⇒ Not A Bug
Reply to this comment
Your PHP is broken.  ErrorException is part of PHP itself:

http://php.net/ErrorException
09/30/2011 06:36:48 PM michael (at) bigmichi1 (dot) de Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ class ErrorException missing
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
when i have set a wrong permission on my backends.local.php so that it 
is not readable for the webserver i got a fatal error about that class 
ErrorException can't be found:
  PHP Fatal error:  Class 'ErrorException' not found in 
/var/www/pear/php/Horde.php on line 238

so i searched the entire horde installation for that class and didn't 
found it, but i found some places where it is thrown, so eighter the 
file is missing in some place or the throws are false.


  grep -R ErrorException /var/www/pear/php | grep -v registry
/var/www/pear/php/Horde.php:                self::logMessage(new 
ErrorException('PHP ERROR: ' . $errstr, 0, $errno, $errfile, 
$errline), $priority);
/var/www/pear/php/Horde/Mime/Part.php:                } catch 
(ErrorException $e) {
/var/www/pear/php/Horde/Mime/Part.php:     *         ErrorException if 
an error is found.
/var/www/pear/php/Horde/Mime/Part.php:     * @throws ErrorException
/var/www/pear/php/Horde/Mime/Part.php:        } catch (ErrorException $e) {
/var/www/pear/php/Horde/Mime/Part.php:     * @throws ErrorException
/var/www/pear/php/Horde/Mime/Part.php:        throw new 
ErrorException($errstr, $errno);
/var/www/pear/php/Horde/Core/Log/Logger.php:     *                     
     ErrorException).

Saved Queries