Bug 1044881

Summary: [origin_cartridge_85]It is still using the pear and php version for php-5.3 in php-5.4 cartridge user shell
Product: OpenShift Online Reporter: Meng Bo <bmeng>
Component: ImageAssignee: Vojtech Vitek <vvitek>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: hripps, vvitek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-30 00:53:45 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:

Description Meng Bo 2013-12-19 07:39:11 UTC
Description of problem:
Create a php-5.4 app and check the pear version in the app shell. We can find the php version is still 5.3.3

[php54s-bmengdev.dev.rhcloud.com 52b2877882d39c1eb5000020]\> pear version
PEAR Version: 1.9.4
PHP Version: 5.3.3
Zend Engine Version: 2.3.0
Running on: Linux ip-10-151-25-237 2.6.32-431.1.2.el6.x86_64 #1 SMP Sun Nov 24 09:37:37 EST 2013 x86_64


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

How reproducible:
always

Steps to Reproduce:
1. Create php-5.4 app
2. Check the pear version in the app shell
$ pear version
3.

Actual results:
It still using php version 5.3

[php54s-bmengdev.dev.rhcloud.com 52b2877882d39c1eb5000020]\> pear version
PEAR Version: 1.9.4
PHP Version: 5.3.3
Zend Engine Version: 2.3.0
Running on: Linux ip-10-151-25-237 2.6.32-431.1.2.el6.x86_64 #1 SMP Sun Nov 24 09:37:37 EST 2013 x86_64
[php54s-bmengdev.dev.rhcloud.com 52b2877882d39c1eb5000020]\> which pear
/usr/bin/pear

Expected results:
Should match the php version 5.4

Additional info:
[root@ip-10-151-25-237 openshift]# /opt/rh/php54/root/usr/bin/pear version
PEAR Version: 1.9.4
PHP Version: 5.4.16
Zend Engine Version: 2.4.0
Running on: Linux ip-10-151-25-237 2.6.32-431.1.2.el6.x86_64 #1 SMP Sun Nov 24 09:37:37 EST 2013 x86_64

Comment 1 Meng Bo 2013-12-19 09:42:56 UTC
Check the php version in the gear shell, it will also return the php version is 5.3.3

[php54-bmengdev.dev.rhcloud.com 52b2a3e082d39cfc2e00004a]\> php --version
PHP 5.3.3 (cli) (built: Dec  5 2013 07:09:40) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with Xdebug v2.1.4, Copyright (c) 2002-2012, by Derick Rethans

Comment 3 Meng Bo 2013-12-20 11:05:32 UTC
Checked on devenv_4161, issue has been fixed.

The pear and php are using the correct version. And the php 5.4 feature native web server works.

[php54-bmengdev.dev.rhcloud.com repo]\> pear version
PEAR Version: 1.9.4
PHP Version: 5.4.16
Zend Engine Version: 2.4.0
Running on: Linux ip-10-238-236-28 2.6.32-431.1.2.el6.x86_64 #1 SMP Sun Nov 24 09:37:37 EST 2013 x86_64


[php54-bmengdev.dev.rhcloud.com repo]\> php --version
PHP 5.4.16 (cli) (built: Aug 19 2013 10:59:17) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies


[php54-bmengdev.dev.rhcloud.com repo]\> php -S 127.1.247.1:8081
PHP 5.4.16 Development Server started at Fri Dec 20 06:02:25 2013
Listening on http://127.1.247.1:8081
Document root is /var/lib/openshift/52b4232207232053d2000105/app-root/runtime/repo
Press Ctrl-C to quit.


Move bug to verified.