Fork me on GitHub

Rapport de message :*
 

Re: Modules 100% compatibles avec Core 2.5.5 - tests

Titre du sujet : Re: Modules 100% compatibles avec Core 2.5.5 - tests
par alain01 sur 25/06/2012 17:58:17

Bon, merci pour ces efforts...

j'ai modifié le fichier /usr/share/php5/PEAR.php comme indiqué,

Citation :

// ajout alain T
if (!function_exists("_PEAR_call_destructors()")){

function _PEAR_call_destructors()
{
global $_PEAR_destructor_object_list;
if (is_array($_PEAR_destructor_object_list) &&
sizeof($_PEAR_destructor_object_list))
{
reset($_PEAR_destructor_object_list);
if (@PEAR::getStaticProperty('PEAR', 'destructlifo')) {
$_PEAR_destructor_object_list = array_reverse($_PEAR_destructor_object_list);
}
while (list($k, $objref) = each($_PEAR_destructor_object_list)) {
$classname = get_class($objref);
while ($classname) {
$destructor = "_$classname";
if (method_exists($objref, $destructor)) {
$objref->$destructor();
break;
} else {
$classname = get_parent_class($classname);
}
}
}
// Empty the object list to ensure that destructors are
// not called more than once.
$_PEAR_destructor_object_list = array();
}

// Now call the shutdown functions
if (is_array($GLOBALS['_PEAR_shutdown_funcs']) AND !empty($GLOBALS['_PEAR_shutdown_funcs'])) {
foreach ($GLOBALS['_PEAR_shutdown_funcs'] as $value) {
call_user_func_array($value[0], $value[1]);
}
}
}
}
// fin ajout alain T



mais j'ai maintenant l'erreur :
Fatal errorCannot redeclare class PEAR in /usr/share/php5/PEAR.php on line 103


j'ai pourtant ajouté l'accolade...
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

73 Personne(s) en ligne (56 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 73 | Plus ...