Fedora Account System
Red Hat Associate
Red Hat Customer
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; ?> ~~~~~~~~~~~
*** This bug has been marked as a duplicate of bug 1054642 ***
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.