problems on php 4.4.0

problems on php 4.4.0

autor koen roggemans -
Počet odpovědí: 5
Obrázek: Core developers Obrázek: Documentation writers Obrázek: Moodle HQ Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers Obrázek: Translators
There seems to be a problem with the adodb-files on php 4.4.0: adodb.inc.php is giving an error
Anyone aware of this? Can I just search for a newer version of that file or is it modified?
Průměr hodnocení: -
V odpovědi na koen roggemans

Re: problems on php 4.4.0

autor Richard Crawford -
This one comes up so often it ought to be in the FAQ (it may already be at this point, actually; I'm not sure).

In the meantime, we've put up a quick fix in our department's development blog:

http://devblog.extensiondlc.net/?p=3

V odpovědi na Richard Crawford

Re: problems on php 4.4.0

autor koen roggemans -
Obrázek: Core developers Obrázek: Documentation writers Obrázek: Moodle HQ Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers Obrázek: Translators
Thanks a lot for pointing this out.
Why isn't it fixed in the Moodle core as the problem occurs so often? Or does it break the package for other php versions?
V odpovědi na koen roggemans

Re: problems on php 4.4.0

autor Eloy Lafuente (stronk7) -
Obrázek: Core developers Obrázek: Documentation writers Obrázek: Moodle HQ Obrázek: Particularly helpful Moodlers Obrázek: Peer reviewers Obrázek: Plugin developers Obrázek: Testers
Hi Koen,

the problem is really important but there are at least three causes (in my opinion) preventing to apply such changes to Moodle's core for now:
  • It involves to modify one 3rd part library. Although nothing (legally or technically) forbids to do such modification it means to break (only a bit but to break) with adodb official releases making things difficult to maintain in the future.

  • The solution itself, although working, is far from optimal because the proposed patch forces php to duplicate structures in memory and it could be really dangerous for a lot of people running under memory-controlled hosting plans or busy servers.

  • The problem doesn't seem to be global (to every 4.4.0 installation). Recent conversations maintained with John Lim (the creator of the great adodb library) seem to ensure that the problem in related with php servers running some sort of old accelerators (the Zend one, for example), whereas servers without it or using other accelerators (IonCube) seem to work fine. See: http://phplens.com/lens/lensforum/msgs.php?id=13451

Ciao úsměv


Edited: One interesting link I've found just some minutes ago:

http://gallery.menalto.com/node/36605#comment-135808

(seems to confirm problems with Zend Optimizer (accelerator) and PHP 4.4.0). One interesting tip is provided to avoid it. v pohodě Please, if possible, test it under your servers...
V odpovědi na Eloy Lafuente (stronk7)

Re: problems on php 4.4.0

autor koen roggemans -
Obrázek: Core developers Obrázek: Documentation writers Obrázek: Moodle HQ Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers Obrázek: Translators
Thanks a lot Eloy.
Unfortunately I'm on shared host, so no testing possibilities. I'll pass the information and try to follow what they are doing with it.