by bilkusg on 2009-11-13, 12:52
An update to my previous post on this issue.
I discovered that although running with a debug version of php appears to work around the problem, it also causes z-push to fail in various places.
After some further digging, I've established that the easiest workaround appears to be to replace /usr/lib/apache2/modules/libphp5.so from Ubuntu karmic with the version from some older distribution. There is obviously some bug in the particular version of php used in Karmic.
In my case, I already had another machine running Hardy and I simply replaced that one file and now everything seems to work. There does not appear to be any problem using a mapi.so compiled against the slightly later version of php, probably because they are both php 5.2
If you prefer not to replace files like this, you can put the hardy file somewhere else and change /etc/apache2/mods-enabled/php5.load to point to the new location and restart apache.
(All this does mean that the apache-embedded version of php you are running will differ from the version you get with the command line, but in my case that doesn't bother me).