Bug 1066083

Summary: php-5.4 imgaick support broken
Product: OKD Reporter: Timothy Williams <tiwillia>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.xCC: xtian, yadu
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-18 05:09:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Timothy Williams 2014-02-17 16:15:19 UTC
Description of problem:
Using the php-5.4 cartridge, ImageMagick support is broken. Using php-5.3, the Imagick class is already installed and ready to be used. Using php-5.4, imagick cannot be used. Because custom PECL's cannot be installed, there does not appear to be a valid workaround.

Version-Release number of selected component (if applicable):
-

How reproducible:
Always

Steps to Reproduce:
1. Create php-5.4 cartridge
2. Add code that utilizes imagick
3. Push and test

Actual results:
Page failed to render
[Mon Feb 17 10:24:45 2014] [error] [client 127.8.124.129] PHP Fatal error:  Class 'Imagick' not found in /var/lib/openshift/530227945973cabe100000ac/app-root/runtime/repo/php/test.php on line 5

Expected results:
Image rendered

Additional info:
Used the following test code. I also have the google search image titled 'google.png' in the php directory as an example:
~~~~~~~~~~~~
<?php

header('Content-type: image/png');

$image = new Imagick('google.png');

echo $image;

?>
~~~~~~~~~~~

Comment 1 Xiaoli Tian 2014-02-18 05:09:46 UTC

*** This bug has been marked as a duplicate of bug 1054642 ***

Comment 2 Yan Du 2014-02-18 05:44:21 UTC
Test on devenv_stage_700

Not sure I understand it correctly, but seems both php-5.3 and php-5.4 app works for me.

steps:
1. create php-5.4/php-5.3 app
2. Add code that utilizes imagick
<?php

header('Content-type: image/jpeg');

$image = new Imagick('pso.jpeg');

echo $image;

?>
3. Add pso.jpeg to $repo/php/
4. git push
5. Visit the app url in web. eg: http://p54-111.dev.rhcloud.com/test.php
6. rhc tail p54 

There is no such error during push, also no error in log, and the picture show normally when visit the $app-url/test.php in web.