309746069 / xmpphp

Automatically exported from code.google.com/p/xmpphp
0 stars 0 forks source link

Problem With Duplicate Module Names, Log.php & Exception.php specifically #50

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Use XMLStream.php in an environment with php/Log.php and PEAR/Exception.php
already installed and loaded by your application.  In this particular case
we are using Horde/IMP.

What is the expected output? What do you see instead?

I get an error when XMLStream tries to instantiate the XMPPHP_Log class

$this->log = new XMPPHP_Log($printlog, $loglevel);

because php/XMPPHP/Log.php was not loaded because php/Log.php is already
loaded.

What version of the product are you using? On what operating system?

Using the debian testing package with 0.1 Beta-r54.  But the issue also
exists in the latest 0.1 RC1 (rev 70).

Please provide any additional information below.

Simple fix is to do this...

/** XMPPHP_Exception */
require_once 'XMPPHP/Exception.php';

/** XMPPHP_XMLObj */
require_once 'XMPPHP/XMLObj.php';

/** XMPPHP_Log */
require_once 'XMPPHP/Log.php';

Original issue reported on code.google.com by andydor...@comehome.net on 24 Mar 2009 at 1:33