Bug 1066083 - php-5.4 imgaick support broken
Summary: php-5.4 imgaick support broken
Keywords:
Status: CLOSED DUPLICATE of bug 1054642
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 1.x
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-17 16:15 UTC by Timothy Williams
Modified: 2018-12-04 17:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-18 05:09:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 725883 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.