Project

General

Profile

Actions

Bug #669

closed

php MRC module does not work with php version greater than 5.2

Added by Neil Voss over 14 years ago. Updated over 12 years ago.

Status:
Duplicate
Priority:
Urgent
Assignee:
-
Category:
Php-mrc
Start date:
06/16/2010
Due date:
% Done:

0%

Estimated time:
Affected Version:
Pre-2.0
Show in known bugs:
No
Workaround:

Description

php MRC module does not work with php version greater than 5.2. Can we figure this out for Leginon 2.1?


Related issues 4 (0 open4 closed)

Related to Appion - Bug #1271: Using Redux server instead of PHP mrc module.ClosedJim Pulokas04/26/2011

Actions
Related to Appion - Bug #780: php_mrc-5.3 is in the branch, does not work and is confusingClosedAmber Herold07/27/2010

Actions
Related to Appion - Bug #212: php_mrc moduleClosedEric Hou03/16/2010

Actions
Has duplicate Leginon - Bug #1329: PHP mrc error with newest PHP versionClosed06/14/2011

Actions
Actions #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.

Actions #2

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.

Actions #3

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
Actions #4

Updated by Amber Herold over 14 years ago

  • Target version changed from Appion/Leginon 2.2.0 to Appion/Leginon 2.1.0
Actions #5

Updated by Neil Voss over 14 years ago

  • Category changed from Web Image Viewer to Php-mrc
  • Show in known bugs set to No
Actions #6

Updated by Eric Hou over 14 years ago

  • Target version changed from Appion/Leginon 2.1.0 to Appion/Leginon Future Version

Hope to get rid of phpmrc

Actions #7

Updated by Eric Hou about 14 years ago

  • Assignee changed from Jim Pulokas to Eric Hou
Actions #8

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

Actions #9

Updated by Amber Herold about 14 years ago

  • Deliverable set to PHP_MRC rework
Actions #10

Updated by Amber Herold about 14 years ago

  • Target version changed from Appion/Leginon Future Version to Appion/Leginon 2.2.0
Actions #11

Updated by Eric Hou almost 14 years ago

  • Priority changed from High to Urgent
Actions #12

Updated by Eric Hou over 13 years ago

  • Assignee changed from Eric Hou to Amber Herold
Actions #13

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
Actions #14

Updated by Amber Herold over 12 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF