CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Conditionally use system PEAR
Pages: [1]

Author Topic: Conditionally use system PEAR  (Read 462 times)

torrance123

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 3
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.3.3
Conditionally use system PEAR
September 23, 2013, 09:27:35 pm
CiviCRM includes its own PEAR libraries in the /packages folder. If other modules attempt to use the system PEAR, we'll get a "cannnot redeclare class" error. At this point, I'm stuck as to an easy workaround for this.

I understand why Civi includes its own PEAR library for compatibility reasons, but I wonder how easy it would be to set the option for Civi to use the system PEAR libraries (and leave it up the the sysadmin to ensure compatibility). This will allow Civi to play nice alongside other modules that depend upon PEAR classes.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Conditionally use system PEAR

This forum was archived on 2017-11-26.