Bug #669
closedphp MRC module does not work with php version greater than 5.2
0%
Description
php MRC module does not work with php version greater than 5.2. Can we figure this out for Leginon 2.1?
Updated by Amber Herold over 14 years ago
Jim, also please add warning documentation to appropriate places in the installation instructions, if it is missing.
Updated by Jim Pulokas over 14 years ago
Part of the problem has been resolved by making changes to php_mrc.c to bring it up to date with new zend API.
The remaining problem seems to be a bug in php, so we should probably formulate a good bug report for them if there is not one already. Here is a project that is similar to ours in that they are a compiled php module that uses the gd library. They have the same problem we do:
http://pecl.php.net/bugs/search.php?cmd=display&status=Open&package_name[]=GDChart
The actual problem is that php.h forces you to use the bundled version of libgd (which is always has since 5.1) but now in 5.3, the linker can not find the bundled gd functions. They are not exported properly or whatever.
In myami/trunk/php_mrc-5.3, I have made several changes that allows it to compile and work to some extent. I created gd_unbundled.h, which you include after php.h to reverse its effects. Then you can link against libgd that you install from rpm rather then the one bundled with php. I got ex1.php to generate the png image, but then it segfaults when the data structures a deallocated. This is probably because there is a mix of functions using the bundled libgd and the external libgd. mrctoimage will generate a gd image struct using external libgd, but when php garbage collects the structure, it probably thinks it is from the bundled libgd.
Updated by Amber Herold over 14 years ago
- Priority changed from Normal to High
- Target version changed from Appion/Leginon 2.1.0 to Appion/Leginon 2.2.0
Updated by Amber Herold over 14 years ago
- Target version changed from Appion/Leginon 2.2.0 to Appion/Leginon 2.1.0
Updated by Neil Voss over 14 years ago
- Category changed from Web Image Viewer to Php-mrc
- Show in known bugs set to No
Updated by Eric Hou about 14 years ago
- Target version changed from Appion/Leginon 2.1.0 to Appion/Leginon Future Version
Hope to get rid of phpmrc
Updated by Eric Hou about 14 years ago
- Assignee changed from Jim Pulokas to Eric Hou
Updated by Eric Hou about 14 years ago
I have to remove all the php-mrc function call and use the new python server that Jim created.
Eric
Updated by Amber Herold about 14 years ago
- Target version changed from Appion/Leginon Future Version to Appion/Leginon 2.2.0
Updated by Eric Hou over 13 years ago
- Assignee changed from Eric Hou to Amber Herold
Updated by Amber Herold over 13 years ago
- Status changed from Assigned to New
- Assignee deleted (
Amber Herold) - Target version changed from Appion/Leginon 2.2.0 to Appion/Leginon Future Version