6.0.0-beta1
7/4/25

[#9272] missing require_once in iCalendar.php
Summary missing require_once in iCalendar.php
Queue Horde Base
Queue Version 3.3.9
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester fabio.bas (at) officineinformatiche (dot) net
Created 09/29/2010 (5392 days ago)
Due
Updated 09/29/2010 (5392 days ago)
Assigned 09/29/2010 (5392 days ago)
Resolved 09/29/2010 (5392 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
09/29/2010 05:22:22 PM Jan Schneider State ⇒ Not A Bug
 
09/29/2010 05:17:20 PM fabio (dot) bas (at) officineinformatiche (dot) net Comment #3 Reply to this comment
PEAR.php is already loaded in horde/lib/core.php. If you want to use 
the library outside of a Horde installation, you need to load it 
yourself.
This is exactly my case. I saw the "require_once" present in a 
function and missing in the next one, so i thought either one of the 
two was missing or superfluous.
Or are you seeing this error while using a Horde application? If yes, where?
No error when using the function from inside Horde, feel free to close 
this ticket
09/29/2010 04:47:55 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
PEAR.php is already loaded in horde/lib/core.php. If you want to use 
the library outside of a Horde installation, you need to load it 
yourself.
Or are you seeing this error while using a Horde application? If yes, where?
09/29/2010 04:13:28 PM fabio (dot) bas (at) officineinformatiche (dot) net Comment #1
Priority ⇒ 2. Medium
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ missing require_once in iCalendar.php
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
From the file horde-3.3.9/lib/Horde/iCalendar.php, in "function 
getAttributeValues($name)":
---
         if (!count($result)) {
             return PEAR::raiseError('Attribute "' . $name . '" Not Found');
         }
---
This misses a "require_once 'PEAR.php';" and causes a "PHP Fatal 
error:  Class 'PEAR' not found".
The previous function in the same file (getAttribute) already contains 
the "require_once" and works fine:
---
         if (!count($result)) {
             require_once 'PEAR.php';
             return PEAR::raiseError('Attribute "' . $name . '" Not Found');
---




Saved Queries