Hide Forgot
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
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
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/0f0d186a7ac619b9645e5097742168c6d298ea7d set php-5.4 SCL PATHs for gear environment Bug 1044881 - https://bugzilla.redhat.com/show_bug.cgi?id=1044881
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.